export { getWebSearchConfigDir, getWebSearchSettingsPath, getWebSearchSettingsPath as getWebSearchConfigPath, loadConfig, readWebSearchSection, saveConfig, WEB_SEARCH_SETTINGS_KEY, } from "./settings.ts"; /** * The request signal: the caller's cancellation combined with our own timeout. Every provider * needs this exact pair, and `AbortSignal.any` is the only correct way to keep both. */ export declare function requestSignal(signal: AbortSignal | undefined, timeoutMs: number): AbortSignal; interface ApiBaseUrlOptions { configKey: string; configuredValue: unknown; defaultValue: string; environmentKey: string; environmentValue: string | undefined; } export declare function isLoopbackHostname(hostnameValue: string): boolean; export declare function resolveApiBaseUrl(options: ApiBaseUrlOptions): string; export declare function fetchWithCredentialRedirects(url: string, init: RequestInit, credentialHeaders: readonly string[]): Promise; export interface CuratorNetworkConfig { /** Whether remote access was opted into via curatorRemote. */ enabled: boolean; host: string; bind: string; } /** Resolves the curator server bind address and URL host from `curatorRemote`. */ export declare function resolveCuratorNetworkConfig(): CuratorNetworkConfig; export declare function formatSeconds(s: number): string; export declare function readExecError(err: unknown): { code?: string; stderr: string; message: string; }; export declare function isTimeoutError(err: unknown): boolean; export declare function trimErrorText(text: string): string; export declare function mapFfmpegError(err: unknown): string; export declare function normalizeProxyUrl(value: unknown, source: string): string | null; export declare function loadConfiguredProxy(): string | null; export declare function restoreGlobalProxyFetch(): void; export declare function runWithProxy(proxy: string | undefined, fn: () => T): T; export declare function getActiveProxy(): string | null; export declare function hasScopedProxyDecision(): boolean; /** True when a URL must NOT be sent through the active proxy. */ export declare function isProxyBypassedUrl(url: URL): boolean; export interface ProxiedRequestInit extends RequestInit { /** Caller-supplied proxy; bypasses AsyncLocalStorage for pLimit-safe contexts. */ __proxy?: string | undefined; } /** Wraps globalThis.fetch so every http(s) call routes through curl while a proxy is active. Idempotent. */ export declare function installGlobalProxyFetch(): void;