import type { Run, RunStatus } from './types.js';
export interface RunKillSideEffects {
    decRunsActive?: () => void;
    getSseConnections?: (runId: string) => Set<{
        write: (chunk: string) => void;
    }> | undefined;
    onSseMessage?: () => void;
    deleteEventStream?: (runId: string) => void;
}
export interface ApplyRunKillResult {
    applied: boolean;
    idempotent: boolean;
    runId: string;
    status: RunStatus;
}
export declare function setRunKillSideEffects(effects: RunKillSideEffects): void;
export declare function isTerminalRunStatus(status: RunStatus): boolean;
export declare function applyRunKill(runId: string, reason: string): Promise<ApplyRunKillResult>;
export type { Run };
//# sourceMappingURL=run-kill.d.ts.map