#!/usr/bin/env node
/**
 * Feature Agent Worker
 *
 * Background worker entry point that runs as a child process via fork().
 * Initializes DI, creates the feature agent graph, and executes it.
 * Sends periodic heartbeats so the CLI can detect stuck/crashed workers.
 *
 * CLI Args: --feature-id <id> --run-id <id> --repo <path> --spec-dir <path>
 */
import 'reflect-metadata';
export interface WorkerArgs {
    featureId: string;
    runId: string;
    repo: string;
    specDir: string;
    worktreePath?: string;
    approvalMode?: string;
    resume?: boolean;
}
/**
 * Parse CLI arguments into a WorkerArgs object.
 * Throws if any required argument is missing.
 */
export declare function parseWorkerArgs(args: string[]): WorkerArgs;
/**
 * Run the feature agent worker with the given arguments.
 * Initializes DI, creates the graph, and executes it.
 */
export declare function runWorker(args: WorkerArgs): Promise<void>;
//# sourceMappingURL=feature-agent-worker.d.ts.map