import type { SandboxMessage } from './types.js'; export type { SandboxMessage }; export interface AgentConfig { /** Anthropic API key */ apiKey: string; /** Model identifier, default: 'anthropic/claude-sonnet-4-5' */ model?: string; /** Working directory for the agent, default: process.cwd() */ workdir?: string; /** Data directory for SQLite storage, default: '/app/data' */ dataDir?: string; } export interface Agent { /** Start a new job with the given prompt. Returns immediately with a jobId. */ startJob(prompt: string): Promise<{ jobId: string; }>; /** Subscribe to events for a job. Returns an unsubscribe function. */ onEvent(jobId: string, cb: (event: SandboxMessage) => void): () => void; /** Gracefully shut down the agent (cleanup storage, permission servers, etc.) */ shutdown(): Promise; } export declare function createAgent(config: AgentConfig): Promise;