import type { Tool } from "effect/unstable/ai"; import type { Usage } from "./response.ts"; export type Inbound = { readonly kind: "rpc-response"; readonly id: string | number; readonly error?: unknown; readonly result?: unknown; } | { readonly kind: "rpc-request"; readonly id: string | number; readonly method: string; readonly params: Record; } | { readonly kind: "notification"; readonly method: string; readonly params: Record; } | { readonly kind: "ignore"; }; export declare const classifyInbound: (msg: Record) => Inbound; export declare const decodeInboundLine: (line: string) => Inbound | undefined; export declare const decodeRecord: (value: unknown) => Record | undefined; export declare const threadIdFromStartResult: (threadResult: unknown) => string | undefined; export type TurnSignal = { readonly _tag: "SetText"; readonly text: string; } | { readonly _tag: "SetUsage"; readonly usage: Usage; } | { readonly _tag: "Complete"; readonly text?: string | undefined; } | { readonly _tag: "Fail"; readonly message: string; } | { readonly _tag: "Ignore"; }; export declare const interpretNotification: (method: string, params: Record) => TurnSignal; export declare const toDynamicTools: (tools: ReadonlyArray) => { name: any; description: string; inputSchema: import("effect/JsonSchema").JsonSchema; type: "function"; }[]; export declare const toolCallReply: (isFailure: boolean, result: unknown) => { success: boolean; contentItems: { type: string; text: string; }[]; }; export declare const encodeOutbound: (payload: unknown) => Uint8Array; //# sourceMappingURL=codexProtocol.d.ts.map