export interface RequestCreds { url: string; apiKey: string; } export type ParseableMode = "cloud" | "self-hosted"; export type RequestAuth = { mode: "cloud"; apiKey: string; } | { mode: "self-hosted"; apiKey: string; url: string; }; export declare class AuthError extends Error { status: number; constructor(status: number, message: string); } export declare function header(headers: Headers | Record, name: string): string | undefined; export declare function parseRequestAuth(headers: Headers | Record): RequestAuth; export declare function parseAuthHeaders(headers: Headers | Record): RequestCreds; export declare function assertNotPrivateUrl(rawUrl: string): void;