import { AxiosRequestConfig, AxiosResponse } from 'axios'; import { type AccessTokenResponseType } from '../api/OAuth2OIDCApi'; import { TokenInfoResponseType } from '../api/OAuth2OIDCApi'; import { State } from '../shared/State'; export type AccessTokenMetaType = AccessTokenResponseType & { expires: number; from_cache?: boolean; }; export type OAuth2Oidc = { authorize(amBaseUrl: string, data: string, config: AxiosRequestConfig): Promise>; accessToken(amBaseUrl: string, data: any, config: AxiosRequestConfig): Promise; accessTokenRfc7523AuthZGrant(clientId: string, jwt: string, scope: string[], config?: AxiosRequestConfig): Promise; getTokenInfo(amBaseUrl: string, config: AxiosRequestConfig): Promise; clientCredentialsGrant(amBaseUrl: string, clientId: string, clientSecret: string, scope: string): Promise; }; declare const _default: (state: State) => OAuth2Oidc; export default _default; export declare function authorize({ amBaseUrl, data, config, state, }: { amBaseUrl: string; data: string; config: AxiosRequestConfig; state: State; }): Promise>; export declare function accessToken({ amBaseUrl, data, config, realm, state, }: { amBaseUrl: string; data: any; config: AxiosRequestConfig; realm?: boolean; state: State; }): Promise; export declare function accessTokenRfc7523AuthZGrant({ clientId, jwt, scope, config, state, }: { clientId: string; jwt: string; scope: string[]; config?: AxiosRequestConfig; state: State; }): Promise; export declare function getTokenInfo({ amBaseUrl, config, state, }: { amBaseUrl: string; config: AxiosRequestConfig; state: State; }): Promise; export declare function clientCredentialsGrant({ amBaseUrl, clientId, clientSecret, scope, state, }: { amBaseUrl: string; clientId: string; clientSecret: string; scope: string; state: State; }): Promise; //# sourceMappingURL=OAuth2OidcOps.d.ts.map