import type { JsonObject } from '../../../conversion/hub/types/json.js';
import type { RoutingInstructionState } from '../../../router/virtual-router/routing-instructions.js';
export declare function resolveStickyKey(record: {
    requestId?: unknown;
    providerProtocol?: unknown;
    responsesResume?: unknown;
    sessionId?: unknown;
    conversationId?: unknown;
    metadata?: unknown;
    [key: string]: unknown;
}, runtimeMetadata?: unknown): string | undefined;
export declare function persistStopMessageState(stickyKey: string | undefined, state: RoutingInstructionState): void;
export declare function resolveStopMessageSessionScope(record: {
    sessionId?: unknown;
    metadata?: unknown;
    [key: string]: unknown;
}, runtimeMetadata?: unknown): string | undefined;
export declare function resolveBdWorkingDirectoryForRecord(record: {
    metadata?: unknown;
    [key: string]: unknown;
}, runtimeMetadata: unknown): string | undefined;
export declare function readServerToolFollowupFlowId(runtimeMetadata: unknown): string;
export declare function resolveStopMessageFollowupProviderKey(args: {
    record: {
        providerKey?: unknown;
        providerId?: unknown;
        metadata?: unknown;
    };
    runtimeMetadata?: unknown;
}): string;
export declare function resolveStopMessageFollowupToolContentMaxChars(params: {
    providerKey?: string;
    model?: string;
}): number | undefined;
export declare function getCapturedRequest(adapterContext: unknown): JsonObject | null;
export declare function resolveClientConnectionState(value: unknown): {
    disconnected?: boolean;
} | null;
export declare function hasCompactionFlag(rt: unknown): boolean;
export declare function resolveImplicitGeminiStopMessageSnapshot(ctx: {
    base: unknown;
    adapterContext: unknown;
    providerProtocol?: string;
}, record: {
    providerProtocol?: unknown;
    entryEndpoint?: unknown;
    metadata?: unknown;
}): {
    text: string;
    maxRepeats: number;
    used: number;
    source?: string;
    updatedAt?: number;
    lastUsedAt?: number;
} | null;
export declare function resolveDefaultStopMessageSnapshot(ctx: {
    base: unknown;
    adapterContext: unknown;
}, options?: {
    text?: string;
    maxRepeats?: number;
}): {
    text: string;
    maxRepeats: number;
    used: number;
    source?: string;
    updatedAt?: number;
    lastUsedAt?: number;
} | null;
export declare function resolveEntryEndpoint(record: Record<string, unknown>): string;
