/**
 * Lifecycle controller for a single agent run.
 *
 * Manages the abort signal and a promise that resolves when the run finishes,
 * allowing callers to cancel a run or wait for it to become idle.
 */
export declare class AgentRunState {
    private _abortController?;
    private _runningPrompt?;
    private _resolveRunningPrompt?;
    /** Begin a new run: creates a fresh AbortController and returns its signal. */
    start(): AbortSignal;
    /** Signal cancellation to the running agent loop. */
    abort(): void;
    /** Returns a promise that resolves when the current run finishes (or immediately if idle). */
    waitForIdle(): Promise<void>;
    /** Mark the run as complete: resolves the idle promise and clears internal state. */
    finish(): void;
}
//# sourceMappingURL=agent-run-state.d.ts.map