import type { ConfigType } from '../../client'; import { AlgorithmEnum } from './constants'; export type ConsumerType = { key: string; secret: string; }; export type TokenType = { key: string; secret: string; }; export type OAuthConfigType = { algorithm: AlgorithmEnum; includeBodyHash?: boolean | 'auto'; consumer: ConsumerType; token: TokenType; realm?: string | undefined; callback?: string | null; verifier?: string | null; }; export type OAuthHeadersParserParamsType = { method: ConfigType<_>['method']; data: string | URLSearchParams | FormData; url: ConfigType<_>['url']; headers: ConfigType<_>['headers']; }; export declare function createOAuthHeadersParser({ algorithm, includeBodyHash, realm, token, callback, verifier, consumer }: OAuthConfigType): ({ data, url, headers, method }: OAuthHeadersParserParamsType) => Headers; export type OAuthHeadersParserType = (_: OAuthHeadersParserParamsType) => Headers;