import type { BoundedJsonValue } from "../schemas/json-value.js"; import type { WebhookDefinition, WebhookEventFilter } from "./types.js"; /** Owned, cloud-compatible inputs for one local webhook target run. */ export interface PreparedWebhookInvocation { /** Revalidated definition copied away from caller-owned state. */ definition: WebhookDefinition; /** Bounded payload snapshot; nullish input is normalized to an empty object. */ payload: BoundedJsonValue; /** Target input shaped consistently with hosted task and workflow runs. */ targetInput: BoundedJsonValue; /** Whether the optional event filter accepted the payload. */ matched: boolean; /** Rendered agent prompt when a matching definition targets an agent. */ agentInput?: string; } /** Evaluate a normalized event filter with hosted webhook semantics. */ export declare function matchesWebhookEventFilter(filter: WebhookEventFilter | undefined, payload: BoundedJsonValue): boolean; /** Render an agent webhook prompt exactly as the hosted runtime does. */ export declare function renderWebhookPromptTemplate(template: string, payload: BoundedJsonValue): string; /** * Revalidate and own a definition and payload before local webhook execution. */ export declare function prepareWebhookInvocation(definition: WebhookDefinition, payload: unknown): PreparedWebhookInvocation; //# sourceMappingURL=runtime.d.ts.map