/** Authentication types and helpers. */ /** Supported authentication types. */ export declare enum AuthType { BEARER = "bearer", API_KEY = "apiKey", NONE = "none" } /** Authentication method for API requests. */ export type AuthMethod = { type: AuthType.BEARER; token: string; } | { type: AuthType.API_KEY; key: string; header?: string; } | { type: AuthType.NONE; }; /** Auth namespace for creating authentication configurations. */ export declare const Auth: { /** * Bearer token authentication. * * @example * Auth.bearer("your-jwt-token") */ bearer(token: string): AuthMethod; /** * API key authentication. * * @example * Auth.apiKey("your-api-key") * Auth.apiKey("your-api-key", "X-Custom-Header") */ apiKey(key: string, header?: string): AuthMethod; /** No authentication. */ none(): AuthMethod; }; /** Builds authorization headers from an auth method. */ export declare function buildAuthHeaders(auth: AuthMethod): Record; //# sourceMappingURL=auth.d.ts.map