export interface CancelResult {
    success: boolean;
    reason?: string;
    timestamp: number;
}
export interface CancelAdapter {
    cancelRun(runId: string, reason: string): Promise<CancelResult>;
}
export declare class DefaultCancelAdapter implements CancelAdapter {
    private cancelledRuns;
    private gatewayUrl;
    constructor();
    cancelRun(runId: string, reason: string): Promise<CancelResult>;
    isCancelled(runId: string): boolean;
    getCancelledRuns(): string[];
    clearCancelledRuns(): void;
}
export declare function createCancelAdapter(): CancelAdapter;
export declare function setCancelAdapter(adapter: CancelAdapter | null): void;
export declare const cancelAdapter: CancelAdapter;
//# sourceMappingURL=cancel-adapter.d.ts.map