export declare function encodeBase64Url(value: Uint8Array | string): string; export declare function decodeBase64Url(value: string): Buffer; export declare function canonicalJson(value: unknown): string; export declare function hChaCha20(key: Uint8Array, nonce: Uint8Array): Buffer; export interface XChaChaCiphertext { nonce: string; ciphertext: string; } export declare function encryptXChaCha20Poly1305(key: Uint8Array, plaintext: Uint8Array | string, aad: Uint8Array | string, nonce?: Uint8Array): XChaChaCiphertext; export declare function decryptXChaCha20Poly1305(key: Uint8Array, input: XChaChaCiphertext, aad: Uint8Array | string): Buffer; export declare function encryptLedgerPayload(key: Uint8Array, plaintext: Uint8Array | string, aad: Uint8Array | string, nonce?: Uint8Array, availableCiphers?: readonly string[]): XChaChaCiphertext; export declare function decryptLedgerPayload(key: Uint8Array, input: XChaChaCiphertext, aad: Uint8Array | string): Buffer; //# sourceMappingURL=crypto.d.ts.map