import type { StandardizedMessage, StandardizedRequest } from '../types/standardized.js';
type PendingToolSyncDeps = {
    loadPendingServerToolInjectionFn?: (sessionId: string) => Promise<{
        afterToolCallIds?: unknown;
        messages?: unknown;
    } | null>;
    clearPendingServerToolInjectionFn?: (sessionId: string) => Promise<void>;
    analyzePendingToolSyncFn?: (messages: StandardizedMessage[], afterToolCallIds: string[]) => {
        ready: boolean;
        insertAt: number;
    };
};
export declare function maybeInjectPendingServerToolResultsAfterClientTools(request: StandardizedRequest, metadata: Record<string, unknown>, deps?: PendingToolSyncDeps): Promise<StandardizedRequest>;
export {};
