import type { AuthMode } from '../telemetry/spans.js'; import type { GraphAuth, GraphAuthContext, GraphAuthHeaders, GraphSecrets } from './options.js'; /** Which credential a request will carry. */ export declare const authModeFor: (auth: GraphAuth | undefined, previewToken: string | undefined) => AuthMode; /** The auth headers for one request: a preview token, the configured `auth`, or the single key. */ export declare function resolveAuthHeaders(apiKey: string, auth: GraphAuth | undefined, previewToken: string | undefined, request: GraphAuthContext, secrets?: GraphSecrets): Promise; /** Rejects a malformed `auth` option at configuration time rather than on the first query. */ export declare function validateAuth(auth: GraphAuth | undefined, secrets?: GraphSecrets): void;