export type TeamLeaderExecutionTerminalState = 'running' | 'terminating' | 'terminated'; export interface TeamLeaderExecutionPublicationFence { readonly state: TeamLeaderExecutionTerminalState; assertRunning(operation: string): void; } export declare class TeamLeaderExecutionTerminalGate implements TeamLeaderExecutionPublicationFence { private readonly onTerminalError; private currentState; private terminalReason; constructor(onTerminalError: ((error: unknown) => void) | undefined); get state(): TeamLeaderExecutionTerminalState; latch(error: unknown): unknown; assertRunning(operation: string): void; } export declare class TeamLeaderExecutionPublicationFencedError extends Error { readonly operation: string; readonly terminalReason: unknown; constructor(operation: string, terminalReason: unknown); } //# sourceMappingURL=team-leader-execution-terminal.d.ts.map