import { Authenticator, TokenCache } from './'; import { AccessTokenResponse } from '../types'; /** * An Authenticator class for the OAuth 2.0 Authorization Code with PKCE grant. */ export declare class PKCE extends Authenticator { private clientId; private callback; private authServer?; private baseUrl; constructor(clientId: string, callback: string, authServer?: string | undefined, tokenCache?: TokenCache, baseUrl?: string); private checkForCallback; fetchAccessToken(): Promise; private authorize; tradeCodeForToken(code: string, state: string): Promise; } export declare const getCrypto: () => Crypto; export declare const getCryptoSubtle: () => SubtleCrypto; export declare const createRandomString: () => string; export declare const sha256: (s: string) => Promise; export declare const bufferToBase64UrlEncoded: (input: ArrayBuffer | number[] | Uint8Array) => string;