/** * THIS FILE IS MANUALLY MAINTAINED: see .fernignore * * Custom HeaderAuthProvider that supports both apiKey and accessToken authentication. * When accessToken is provided to HumeClient, the wrapper converts it to an * Authorization: Bearer header. This provider checks for both apiKey and the * Authorization header to support both auth methods. */ import * as core from "../core/index.js"; export declare namespace HeaderAuthProvider { type AuthOptions = { apiKey?: core.Supplier; }; type Options = { headers?: Record | null | undefined>; } & AuthOptions; } export declare class HeaderAuthProvider implements core.AuthProvider { private readonly options; constructor(options: HeaderAuthProvider.Options); static canCreate(options: HeaderAuthProvider.Options): boolean; private static hasAuthorizationHeader; getAuthRequest(_arg?: { endpointMetadata?: core.EndpointMetadata; }): Promise; }