import { AxiosInstance, AxiosRequestConfig } from 'axios'; export type RequestParams = Record; export interface RequestConfig extends AxiosRequestConfig { __secutiryRequirements?: string[]; __preferredTokenType?: 'company' | 'location'; __pathParams?: RequestParams; } /** * Resolves the Authorization header value for a request from the endpoint's * security requirements. HighLevel implements this and registers itself for the * shared Axios instance so generated services can resolve tokens without * holding a reference to the client. */ export interface TokenProvider { getTokenForSecurity(securityRequirements: string[], headers?: RequestParams, query?: RequestParams, body?: any, preferredTokenType?: 'company' | 'location'): Promise; } /** * Associate a token provider with an Axios instance */ export declare function registerTokenProvider(client: AxiosInstance, provider: TokenProvider): void; /** * Look up the token provider registered for an Axios instance */ export declare function getTokenProvider(client: AxiosInstance): TokenProvider | undefined; export declare function buildUrl(template: string, pathParams: RequestParams): string; export declare function extractParams(params: any, paramDefs: Array<{ name: string; in: string; }>): { path: RequestParams; query: RequestParams; header: RequestParams; all: RequestParams; }; export declare function getAuthToken(client: AxiosInstance, requirements: string[], headers: RequestParams, query: RequestParams, body: any, preferredType?: string): Promise; //# sourceMappingURL=request-utils.d.ts.map