import type { AdapterContext } from '../conversion/hub/types/chat-envelope.js';
export interface StopGatewayContext {
    observed: boolean;
    eligible: boolean;
    source: 'chat' | 'responses' | 'none';
    reason: string;
    choiceIndex?: number;
    hasToolCalls?: boolean;
}
export declare function inspectStopGatewaySignal(base: unknown): StopGatewayContext;
export declare function attachStopGatewayContext(adapterContext: AdapterContext, context: StopGatewayContext): void;
export declare function readStopGatewayContext(adapterContext: unknown): StopGatewayContext | undefined;
export declare function resolveStopGatewayContext(base: unknown, adapterContext?: unknown): StopGatewayContext;
export declare function isStopEligibleForServerTool(base: unknown, adapterContext?: unknown): boolean;
