export declare function requireEncryptionKey(env: object): string; export declare function randomToken(byteLength?: number): string; /** Hashes a short-lived bearer value before it is persisted. */ export declare function hashToken(value: string): Promise; /** Returns `base64(iv || ciphertext)`. */ export declare function encryptSecret(encryptionKey: string, plaintext: string): Promise; export declare function decryptSecret(encryptionKey: string, encoded: string): Promise; export type PkcePair = { verifier: string; challenge: string; }; export declare function createPkcePair(): Promise; /** Length-independent comparison, to keep API-key checks off the timing side channel. */ export declare function safeEqual(left: string, right: string): boolean; //# sourceMappingURL=crypto.d.ts.map