import type { ProviderMessageInput } from '../../../lib/providers/types';
import type { ToolPreferenceMap, ToolPermission } from '../../../contexts/McpContext';
import type { OllamaChatAgent } from '../chatAgent';
export declare const isAbortError: (error: unknown) => boolean;
export declare const resolveBaseUrl: (agent: OllamaChatAgent) => string;
export declare const sanitizeModelSettings: (settings?: Record<string, unknown>) => Record<string, unknown> | undefined;
export declare const coerceMessageContent: (message: ProviderMessageInput) => string | undefined;
export declare const normalizeToolPermissions: (preferences?: ToolPreferenceMap) => Array<[string, ToolPermission]>;
export declare const normalizeServerLabel: (id: string) => string;
export declare const buildToolIdentifier: (serverId: string, toolName: string) => string;
export declare const cloneJson: <T>(value: T) => T;
//# sourceMappingURL=helpers.d.ts.map