import type { ClaudeCodeEventExtended, ClientCommand, ClientCommandDisposition, ClientCommandType } from "./types.js"; export declare const MAX_CLAUDE_CODE_MESSAGE_BYTES: number; export declare const MAX_CLAUDE_CODE_FIELD_LENGTH: number; export declare const MAX_CLAUDE_CODE_ARRAY_ITEMS = 256; export type ClaudeCodeEventAdmission = { ok: true; event: TEvent; } | { ok: false; reason: string; }; export type ClaudeCodeWireEncoding = { ok: true; data: string; } | { ok: false; reason: string; }; export interface RejectedClaudeCodeClientCommandContext { readonly commandId: string; readonly commandType: ClientCommandType; readonly requestId?: string; } /** Whether a value is an admitted Claude Code wire identity. */ export declare function isClaudeCodeWireIdentifier(value: unknown): value is string; /** Whether a value fits one non-identity Claude Code wire field. */ export declare function isClaudeCodeWireField(value: unknown): value is string; /** Snapshot a plain record as bounded, own-data-only wire JSON. */ export declare function snapshotClaudeCodeWireRecord(value: unknown): Readonly> | null; /** Parse, bound, validate, and snapshot a Claude Code wire event. */ export declare function admitClaudeCodeEventMessage(data: unknown, allowExtended?: boolean): ClaudeCodeEventAdmission; /** Validate, snapshot, and encode one outgoing Claude Code event. */ export declare function encodeClaudeCodeEventMessage(event: unknown, allowExtended?: boolean): ClaudeCodeWireEncoding; /** Parse and admit one bounded client command for an exact run. */ export declare function admitClaudeCodeClientCommandMessage(data: unknown, expectedRunId: string): ClaudeCodeEventAdmission; /** Validate, snapshot, and encode one outgoing client command for an exact run. */ export declare function encodeClaudeCodeClientCommandMessage(command: unknown, expectedRunId: string): ClaudeCodeWireEncoding; /** Recover safe acknowledgement correlation from a rejected command message. */ export declare function readRejectedClaudeCodeClientCommandContext(data: unknown): RejectedClaudeCodeClientCommandContext | null; /** Admit an own-data-only authoritative command disposition. */ export declare function admitClaudeCodeClientCommandDisposition(value: unknown): ClientCommandDisposition | null; //# sourceMappingURL=wire-protocol.d.ts.map