export interface PkceDto { codeVerifier: string; codeChallenge: string; } /** * Generates a PKCE (Proof Key for Code Exchange) pair consisting of a code verifier and a code challenge. * * @param {number} [length=86] - The desired length of the code verifier. Defaults to 86 if not specified. * @return {Promise<{codeVerifier: string, codeChallenge: string}>} A promise that resolves to an object containing the code verifier and code challenge. */ export declare function generatePkce(length?: number): Promise; /** * Generates a random string state encoded in Base64 URL format. * Optionally allows truncation of the generated state to a specific length. * * @param {number} [bytes=32] - The number of random bytes to generate. * @param {number} [targetLen] - The desired length of the output string. If not specified, the full generated string is returned. * @return {string} - A randomly generated Base64 URL-encoded string. If targetLen is provided, returns a substring of the specified length. */ export declare function generateState(bytes?: number, targetLen?: number): string; //# sourceMappingURL=pkce.d.ts.map