import { type Options, type PermissionResult } from '@anthropic-ai/claude-code'; import type { WebSocket, WebSocketMessage } from '@shared/types'; import { Duplex, Writable } from 'stream'; export declare function handlePermissionResponse(sessionId: string, requestId: string, response: PermissionResult): boolean; /** * Spawns a Claude session using the Anthropic SDK * Note: Images are currently disabled as we will need to refactor to use streaming input to support them * @param command - The command/prompt to send to Claude * @param options - Configuration options * @param output - WebSocket, Writable stream, or Duplex stream for output * @returns The final session ID used for this interaction */ declare function spawnClaude(command: string, options: Options | undefined, output: WebSocket | Writable | Duplex): Promise; /** * Aborts an active Claude session */ declare function abortClaudeSession(sessionId: string): boolean; declare function createStreamWrapper(): { stream: Duplex; onMessage: (handler: (msg: WebSocketMessage) => void) => void; }; export { spawnClaude, abortClaudeSession, createStreamWrapper }; //# sourceMappingURL=spawnClaudeNew.d.ts.map