import type { ChatToolDefinition } from '../hub/types/chat-envelope.js';
import type { BridgeToolDefinition } from '../types/bridge-message-types.js';
export interface ToolCallFunction {
    name: string;
    arguments: string;
}
export interface ToolCallItem {
    id?: string;
    type: 'function';
    function: ToolCallFunction;
}
export interface BridgeToolMapOptions {
    sanitizeName?: (name: string) => string | undefined;
}
export declare function stringifyArgs(args: unknown): string;
export declare function bridgeToolToChatDefinition(rawTool: BridgeToolDefinition | Record<string, unknown> | null | undefined, options?: BridgeToolMapOptions): ChatToolDefinition | null;
export declare function mapBridgeToolsToChat(rawTools: unknown, options?: BridgeToolMapOptions): ChatToolDefinition[] | undefined;
export declare function chatToolToBridgeDefinition(rawTool: ChatToolDefinition | Record<string, unknown> | null | undefined, options?: BridgeToolMapOptions): BridgeToolDefinition | null;
export declare function mapChatToolsToBridge(rawTools: unknown, options?: BridgeToolMapOptions): BridgeToolDefinition[] | undefined;
