export interface BridgeOptions { tempDir?: string; timeoutMs?: number; } export interface CommandResult { success: boolean; data?: unknown; error?: string; } export declare function getTempDir(options?: BridgeOptions): string; /** * Send a command (ExtendScript) to the CEP plugin and wait for a response. * * Protocol: * 1. Write script to /cmd_.jsx * 2. CEP plugin picks it up, executes, writes result to /res_.json * 3. We poll for the response file and parse it. */ export declare function sendCommand(script: string, options?: BridgeOptions): Promise; /** * Send a raw/custom ExtendScript allowing all patterns (for LLM-authored scripts). * Still enforces size limit. The script should already include helpers via buildToolScript. */ export declare function sendRawCommand(script: string, options?: BridgeOptions): Promise; /** * Clean up any stale command/response files from the temp directory. */ export declare function cleanupTempDir(options?: BridgeOptions): void; //# sourceMappingURL=file-bridge.d.ts.map