import type { UserContent } from "ai"; import type { SessionAuthContext } from "#channel/types.js"; import type { MessageStreamEvent } from "#protocol/message.js"; import type { ChannelCors } from "#public/definitions/channel.js"; import { type EveChannelCors, type EveChannelInput, type EveHandle } from "#eve-channel/types.js"; export declare function healthResponse(): Response; /** Clients display the error text directly; keep operator details in structured fields. */ export declare function strandedSessionResponse(error: unknown): Response | undefined; /** Where a remote child the parent session recorded runs, and its credential key. */ export interface RemoteAgentBinding { readonly forwardPrincipal?: boolean; readonly name: string; readonly resolverId?: string; readonly url: string; } interface RemoteAgentStreamCoordinates { readonly callId: string; readonly childSessionId: string; readonly childStreamPath: string; } /** Finds the remote child the parent session recorded for one proxy route, from its `agent.started` event. */ export declare function findRemoteAgentBinding(input: RemoteAgentStreamCoordinates & { readonly parent: { getEventStream(options?: { startIndex?: number; }): Promise>; getStreamTailIndex(): Promise; }; }): Promise; export declare function normalizeEveCors(cors: EveChannelCors | undefined): ChannelCors; interface OnMessageOutcome { readonly auth: SessionAuthContext | null; readonly context?: readonly string[]; readonly title?: string; } export declare function resolveOnMessage(input: { readonly auth: SessionAuthContext | null; readonly config: EveChannelInput; readonly invocation?: EveHandle["invocation"]; readonly message: string | UserContent; readonly request: Request; readonly sessionId?: string; }): Promise; export {};