import { z } from 'zod'; /** Valid message types */ export declare const MessageTypeSchema: z.ZodEnum<["chat", "request", "response", "ack", "broadcast"]>; /** Message ID format: --<4char_hex> */ export declare const MessageIdSchema: z.ZodString; /** Message envelope for peer-to-peer messaging */ export declare const MessageEnvelopeSchema: z.ZodObject<{ from: z.ZodString; to: z.ZodString; ts: z.ZodNumber; id: z.ZodString; type: z.ZodEnum<["chat", "request", "response", "ack", "broadcast"]>; body: z.ZodString; }, "strip", z.ZodTypeAny, { from: string; to: string; ts: number; id: string; type: "chat" | "request" | "response" | "ack" | "broadcast"; body: string; }, { from: string; to: string; ts: number; id: string; type: "chat" | "request" | "response" | "ack" | "broadcast"; body: string; }>; /** Default TTLs in seconds */ export declare const MESSAGE_TTL = 3600; export declare const ACK_TTL = 7200; /** * Generate a protocol-compliant message ID. * Format: --<4char_hex> * Uses Number(Date.now()) to avoid BigInt issues. */ export declare function generateMessageId(hostname: string): string; /** * Create a validated message envelope. * Throws ZodError if any field is invalid. */ export declare function createMessageEnvelope(from: string, to: string, type: z.infer, body: string): { envelope: z.infer; id: string; }; /** * Parse and validate a message envelope from a string value. * Returns the parsed envelope or throws if invalid. */ export declare function parseMessageEnvelope(value: string): z.infer; export declare const ExecuteParamsSchema: z.ZodObject<{ command: z.ZodString; args: z.ZodDefault>>; cwd: z.ZodOptional; env: z.ZodOptional>; timeout: z.ZodOptional; stream: z.ZodDefault>; }, "strip", z.ZodTypeAny, { command: string; args: string[]; stream: boolean; cwd?: string | undefined; env?: Record | undefined; timeout?: number | undefined; }, { command: string; args?: string[] | undefined; cwd?: string | undefined; env?: Record | undefined; timeout?: number | undefined; stream?: boolean | undefined; }>; export declare const TransferPushSchema: z.ZodObject<{ destPath: z.ZodString; }, "strip", z.ZodTypeAny, { destPath: string; }, { destPath: string; }>; export declare const TransferPullSchema: z.ZodObject<{ sourcePath: z.ZodString; destPath: z.ZodString; }, "strip", z.ZodTypeAny, { destPath: string; sourcePath: string; }, { destPath: string; sourcePath: string; }>; export declare const FileListSchema: z.ZodObject<{ path: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; }, { path: string; }>; export declare const ContextSetSchema: z.ZodObject<{ value: z.ZodString; ttl: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: string; ttl?: number | undefined; }, { value: string; ttl?: number | undefined; }>; export declare const ContextKeySchema: z.ZodObject<{ key: z.ZodString; }, "strip", z.ZodTypeAny, { key: string; }, { key: string; }>; export declare const AiTaskParamsSchema: z.ZodObject<{ prompt: z.ZodString; cwd: z.ZodOptional; permissionMode: z.ZodDefault>>; model: z.ZodOptional; maxBudgetUsd: z.ZodOptional; allowedTools: z.ZodOptional>; disallowedTools: z.ZodOptional>; additionalArgs: z.ZodOptional>; resumeSessionId: z.ZodOptional; agent: z.ZodDefault>>; }, "strip", z.ZodTypeAny, { prompt: string; permissionMode: "default" | "acceptEdits" | "bypassPermissions" | "dontAsk"; agent: "claude" | "gemini" | "codex" | "auto"; cwd?: string | undefined; model?: string | undefined; maxBudgetUsd?: number | undefined; allowedTools?: string[] | undefined; disallowedTools?: string[] | undefined; additionalArgs?: string[] | undefined; resumeSessionId?: string | undefined; }, { prompt: string; cwd?: string | undefined; permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "dontAsk" | undefined; model?: string | undefined; maxBudgetUsd?: number | undefined; allowedTools?: string[] | undefined; disallowedTools?: string[] | undefined; additionalArgs?: string[] | undefined; resumeSessionId?: string | undefined; agent?: "claude" | "gemini" | "codex" | "auto" | undefined; }>; export declare const AiTaskApprovalResponseSchema: z.ZodObject<{ requestId: z.ZodString; approved: z.ZodBoolean; message: z.ZodOptional; }, "strip", z.ZodTypeAny, { requestId: string; approved: boolean; message?: string | undefined; }, { requestId: string; approved: boolean; message?: string | undefined; }>; export declare const PermissionRequestBodySchema: z.ZodObject<{ requestId: z.ZodString; toolName: z.ZodString; toolInput: z.ZodDefault>; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { requestId: string; toolName: string; toolInput?: unknown; description?: string | undefined; }, { requestId: string; toolName: string; toolInput?: unknown; description?: string | undefined; }>; export declare const PeerAddSchema: z.ZodObject<{ address: z.ZodString; port: z.ZodNumber; apiKey: z.ZodOptional; }, "strip", z.ZodTypeAny, { address: string; port: number; apiKey?: string | undefined; }, { address: string; port: number; apiKey?: string | undefined; }>; export declare const HandshakeSchema: z.ZodObject<{ nodeId: z.ZodString; hostname: z.ZodString; platform: z.ZodString; version: z.ZodString; port: z.ZodNumber; capabilities: z.ZodArray; }, "strip", z.ZodTypeAny, { port: number; nodeId: string; hostname: string; platform: string; version: string; capabilities: string[]; }, { port: number; nodeId: string; hostname: string; platform: string; version: string; capabilities: string[]; }>; //# sourceMappingURL=schemas.d.ts.map