/** * Worker Runner — Programmatic API for the remote worker CLI. * * Encapsulates all global state into the runner function's closure so that * multiple workers can be started from the same process (e.g. tests) without * leaking state between invocations. */ export interface WorkerRunnerConfig { /** Coordinator API URL */ apiUrl: string; /** API key for authentication */ apiKey: string; /** Worker hostname (default: os.hostname()) */ hostname?: string; /** Maximum concurrent agents (default: 3) */ capacity?: number; /** Poll but don't execute work (default: false) */ dryRun?: boolean; /** Linear API key for agent operations (default: process.env.LINEAR_API_KEY) */ linearApiKey?: string; /** Git repository root (default: auto-detect) */ gitRoot?: string; /** Linear project names to accept (undefined = all) */ projects?: string[]; } /** * Run a worker that polls the coordinator for work and executes agents. * * All state is encapsulated in the function closure. The caller can cancel * via the optional {@link AbortSignal}. */ export declare function runWorker(config: WorkerRunnerConfig, signal?: AbortSignal): Promise; //# sourceMappingURL=worker-runner.d.ts.map