import { type ObservedIngressRun, type StartedIngressRun } from "../../ingress/index.js"; import { type TriggerClientLike } from "./client.js"; import { type TriggerChannelResume } from "./types.js"; export { TRIGGER_SERVICE_KEY_HEADER } from "./types.js"; export declare const ASSISTANT_ID_ENV = "MDA_ASSISTANT_ID"; type StartAgent = (input: { threadId: string; assistantId: string; messages: Record[]; sourceProvider: string; sourceThreadKey: string; }) => Promise; type ObserveAgent = (input: { threadId: string; runId: string; }) => Promise; type ResumeAgent = (input: { threadId: string; assistantId: string; resume: TriggerChannelResume; sourceProvider: string; sourceThreadKey: string; }) => Promise; export interface TriggerChannelHttpOptions { sourceProvider: string; assistantId?: string; rawBody?: string | Uint8Array; schedule?: (work: () => Promise) => void; startAgent?: StartAgent; resumeAgent?: ResumeAgent; observeAgent?: ObserveAgent; triggerClient?: TriggerClientLike; } /** Validate one Trigger message, start its run, and enqueue observation. */ export declare function handleTriggerChannelEventRequest(request: Request, options: TriggerChannelHttpOptions): Promise; //# sourceMappingURL=http.d.ts.map