/** * Build the Authorization header for quonfig API requests. * Format: Basic base64("1:{sdkKey}") */ export declare const authHeader: (sdkKey: string) => string; /** * Build the standard headers for quonfig API requests. * Note: We intentionally omit X-Quonfig-Client-Version to avoid * CORS preflight issues in browsers. Custom headers trigger OPTIONS * preflight which requires server-side CORS configuration. */ export declare const headers: (sdkKey: string, _clientVersion: string) => { Authorization: string; }; export declare const DEFAULT_TIMEOUT = 10000; /** * Default Quonfig domain. Used when no explicit URL options are supplied * and `QUONFIG_DOMAIN` is not set in `process.env`. */ export declare const DEFAULT_DOMAIN = "quonfig.com"; export type DomainOptions = { domain?: string; }; /** * Resolve the active Quonfig domain. * * Order (highest wins): * 1. `options.domain` — the documented browser path (single knob that * flips api + telemetry URLs in lockstep, set via `init({ domain })` * or @quonfig/react ``) * 2. `process.env.QUONFIG_DOMAIN` — useful Node-side / SSR / build-time * inlining; not reliably present at runtime in browsers * 3. Hardcoded default `"quonfig.com"` * * The env-var read is guarded so a pure browser runtime (where `process` * does not exist or is stubbed) does not throw. */ export declare const getDomain: (options?: DomainOptions) => string; /** * Default ordered list of API base URLs, derived from the active domain. * Frontend SDK does NOT open SSE — only the eval-with-context HTTP endpoint * is hit, so we ship both primary and secondary as failover targets. */ export declare const getDefaultApiUrls: (options?: DomainOptions) => string[]; /** * Default telemetry base URL, derived from the active domain. */ export declare const getDefaultTelemetryUrl: (options?: DomainOptions) => string;