import { ScheduleTriggerInvocation } from "./parse-trigger-invocation.js";
import { Context } from "hono";

//#region src/lib/parse-trigger.d.ts

/**
 * Parses a schedule Function Trigger delivery from a Hono context.
 *
 * Throws `HTTPException` (401 / 400) so the handler cannot proceed on a bad
 * delivery. Lives on the route rather than middleware: a `c.set` helper would
 * need a `Variables` generic and would type the payload on every route.
 * Storage-object-created deliveries are `invalid_body`; parse those with
 * `parseTriggerDelivery`.
 */
declare function parseTrigger(c: Context): Promise<ScheduleTriggerInvocation>;
//#endregion
export { parseTrigger };
//# sourceMappingURL=parse-trigger.d.ts.map