import type { JsonObject } from '../conversion/hub/types/json.js';
export interface PendingServerToolInjection {
    version: 1;
    sessionId: string;
    createdAtMs: number;
    /**
     * Client tool_call ids that must appear in the next request's tool messages
     * before we apply the pending servertool injection.
     */
    afterToolCallIds: string[];
    /**
     * Chat messages to inject (assistant tool_call message + tool result messages).
     */
    messages: JsonObject[];
    sourceRequestId?: string;
}
export declare function savePendingServerToolInjection(sessionId: string, pending: Omit<PendingServerToolInjection, 'version' | 'sessionId'>): Promise<void>;
export declare function loadPendingServerToolInjection(sessionId: string): Promise<PendingServerToolInjection | null>;
export declare function clearPendingServerToolInjection(sessionId: string): Promise<void>;
