/** * Shared HTTP helpers used by ZarrPoller, detectZarrStore, and the * client-side Zarr metadata parser. Keeping them here avoids duplicating the * cookie/auth and URL-normalization logic across modules. */ /** Cookie name (with trailing "=") that holds the Freva bearer token. */ export declare const DEFAULT_COOKIE_NAME = "freva_auth_token="; /** * Default auth-header provider: reads a Bearer token from the * `freva_auth_token` cookie and returns it as an `Authorization` header. * Returns an empty object when the cookie is absent or malformed (or when * there is no `document`, e.g. in a non-browser context). */ export declare function defaultGetAuthHeaders(): Record; /** * Normalize a user-provided URL/path. If it looks percent-encoded * (e.g. `https%3A//…`, or double-encoded `https%253A//…`) we decode it so * downstream `fetch` calls treat it as an absolute URL rather than a * relative path against the current origin. */ export declare function normalizeUrl(input: string): string; //# sourceMappingURL=http.d.ts.map