import type { Config } from '../config/schema.js';
export declare function isMaskedApiKey(v: unknown): boolean;
export declare function safeToolsWebForGet(config: Config): {
    web: {
        region: 'cn' | 'global' | null;
        search: {
            maxResults: number;
            providers: Array<{
                type: string;
                apiKey: string;
                url: string;
                disabled: boolean;
            }>;
        };
        blocklist: {
            enabled: boolean;
            domains: string[];
        };
    };
};
/**
 * Merge `body.tools.web` into config. Returns an error message on validation failure.
 */
export declare function applyToolsWebPatch(config: Config, body: Record<string, unknown>): string | undefined;
