import { type MemoryConfinementLauncherInput, type MemoryConfinementLauncherResult } from "@letta-ai/letta-code/memory-confinement"; export interface LocalAppServerHandle { url: string; close(): void; } export interface StartLocalAppServerOptions { listen?: string; backend?: string; startupTimeoutMs?: number; cliPath?: string; env?: Record; filesystemConfinement?: "memory"; agentId?: string; } interface LocalAppServerProcess { command: string; args: string[]; env: NodeJS.ProcessEnv; } type MemoryConfinementLauncher = (input: MemoryConfinementLauncherInput) => MemoryConfinementLauncherResult; export declare function buildLocalAppServerArgs(cliPath: string, options?: Pick): string[]; export declare function buildLocalAppServerProcess(cliPath: string, options?: StartLocalAppServerOptions, confineMemory?: MemoryConfinementLauncher): LocalAppServerProcess; /** * Spawn an SDK-owned Letta Code app-server on an ephemeral loopback port. */ export declare function startLocalAppServer(options?: StartLocalAppServerOptions): Promise; export {}; //# sourceMappingURL=local-app-server.d.ts.map