type EncryptInput = string | object | any[]; declare function init(): Promise; declare function encrypt(input: EncryptInput, secret: string): Promise; declare function decrypt(base64: string, secret: string): Promise; declare function encryptBuffer(input: EncryptInput, secret: string): Promise; declare function decryptBuffer(box: Uint8Array, secret: string): Promise; declare function hash(str: string): Promise; declare function createToken(payload: Record, secret: string): Promise; declare function verifyToken(token: string, secret: string): Promise<{ valid: boolean; payload?: any; }>; declare const crypto: { init: typeof init; encrypt: typeof encrypt; decrypt: typeof decrypt; encryptBuffer: typeof encryptBuffer; decryptBuffer: typeof decryptBuffer; hash: typeof hash; createToken: typeof createToken; verifyToken: typeof verifyToken; }; export { crypto as default }; export type { EncryptInput };