import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent"; import { type Static } from "@earendil-works/pi-schema"; import type { RuntimeResponse } from "./types.ts"; export { REMOTE_DELIVERY_MESSAGE, REMOTE_DELIVERY_RECEIVER } from "./protected-delivery-protocol.ts"; declare const SCHEMA: import("@earendil-works/pi-schema").Schema<{ protocol: 1; origin: "host"; id: string; sourceCallId: string; cellId: string; scope: string; status: "result" | "terminated" | "yielded"; errorText?: string; contextNotesSaved?: boolean; outputs: { resultId: string; name: string; encryptedOutput: string; }[]; imageNotice?: string; images: { type: "image"; mimeType: string; data: string; detail?: "auto" | "high" | "original"; }[]; } | { origin: "host"; id: string; sourceCallId: string; cellId: string; scope: string; status: "result" | "terminated" | "yielded"; errorText?: string; contextNotesSaved?: boolean; outputs: { resultId: string; name: string; encryptedOutput: string; }[]; imageNotice?: string; images: { type: "image"; mimeType: string; data: string; detail?: "auto" | "high" | "original"; }[]; protocol: 2; originalExecCallId: string; }>; export type RemoteDelivery = Static; export declare function readRemoteDelivery(input: unknown): RemoteDelivery; export declare function appendRemoteDelivery(pi: ExtensionAPI, response: RuntimeResponse, sourceCallId: string, scope: string, ctx: ExtensionContext): string; export declare function remoteDeliveryItems(delivery: RemoteDelivery, blockImages?: boolean): unknown[]; export declare function validateRemoteDelivery(delivery: RemoteDelivery, account: () => string | undefined, ctx?: ExtensionContext, baseUrl?: string): void; /** Resolve the source on the event's canonical ancestry, including compacted-out records. */ export declare function remoteDeliverySource(delivery: RemoteDelivery, ctx: { sessionManager: Pick; }): "exec" | "wait";