import type { Link } from '../link.js'; import type { OpenIntProxyLinkOptions } from './openIntProxyLink.js'; import type { StrictUnion } from './type-utils.js'; export type ClientAuthOptions = StrictUnion<{ openInt: OpenIntProxyLinkOptions; } /** to be passed as Authorization header as a bearer token, Should handle automatic refreshing */ | { oauth: { accessToken: string; refreshToken?: string; expiresAt?: number; }; } | { basic: { username: string; password: string; }; } /** non oauth / directly specifying bearer token */ | { bearer: string; }>; export declare function authLink(auth: ClientAuthOptions, baseUrl: string): Link; //# sourceMappingURL=authLink.d.ts.map