import type { BridgeInputItem } from './types/bridge-message-types.js';
export interface BridgeInputBuildOptions {
    messages: Array<Record<string, unknown>>;
    tools?: Array<Record<string, unknown>> | undefined;
}
export interface BridgeInputBuildResult {
    input: BridgeInputItem[];
    combinedSystemInstruction?: string;
    latestUserInstruction?: string;
    originalSystemMessages: string[];
}
export declare function coerceBridgeRole(role: unknown): string;
export declare function serializeToolArguments(argsStringOrObj: unknown, _functionName: string | undefined, _tools: unknown): string;
export declare function serializeToolOutput(entry: BridgeInputItem): string | null;
export declare function convertMessagesToBridgeInput(options: BridgeInputBuildOptions): BridgeInputBuildResult;
export interface BridgeInputToChatOptions {
    input?: BridgeInputItem[];
    tools?: Array<Record<string, unknown>>;
    normalizeFunctionName?: ((raw: unknown) => string | undefined) | 'default' | 'responses';
    toolResultFallbackText?: string;
}
export declare function convertBridgeInputToChatMessages(options: BridgeInputToChatOptions): Array<Record<string, unknown>>;
export declare function ensureMessagesArray(state: any): Array<Record<string, unknown>>;
