declare function bytesToFieldBE(bytes: Uint8Array): bigint; declare function fieldToBytes32BE(value: bigint): Uint8Array; declare function poseidon1(input: bigint): Promise; declare function deriveRootSk(walletSignature: Uint8Array): Uint8Array; declare function deriveSubkey(rootSk: Uint8Array, label: Uint8Array): Uint8Array; type PrivatePoolKeyMaterial = { rootSk: Uint8Array; spendingSk: Uint8Array; viewingSk: Uint8Array; nullifierSk: Uint8Array; spendingSkField: bigint; nullifierSkField: bigint; spendingPkField: bigint; viewingPk: Uint8Array; paymentAddress: string; }; declare function derivePrivatePoolKeys(walletSignature: Uint8Array): Promise; type CodeSeedFormat = 'short' | 'long'; type CodeKeyMaterial = { codeSeed: Uint8Array; format: CodeSeedFormat; rootSk: Uint8Array; spendingSk: Uint8Array; viewingSk: Uint8Array; nullifierSk: Uint8Array; spendingSkField: bigint; nullifierSkField: bigint; spendingPkField: bigint; viewingPk: Uint8Array; }; declare function generateCodeSeed(format?: CodeSeedFormat): Uint8Array; declare function detectCodeSeedFormat(codeSeed: Uint8Array): CodeSeedFormat; declare function deriveCodeKeys(codeSeed: Uint8Array): Promise; declare function encodeCodeSeed(seed: Uint8Array): string; declare function decodeCodeSeed(encoded: string): Uint8Array; declare function encodeShortCode(seed: Uint8Array): string; declare function decodeShortCode(encoded: string): Uint8Array; declare function decodeCodeAuto(encoded: string): { seed: Uint8Array; format: CodeSeedFormat; }; declare function encodePaymentAddress(spendingPkField: bigint, viewingPk: Uint8Array): string; declare function parsePaymentAddress(address: string): { spendingPkField: bigint; viewingPk: Uint8Array; }; declare const PRIVATE_POOL_V2_KEY_CHALLENGE = "RelAI Private Pool V2 \u2014 derive private balance keys.\n\nThis signature unlocks your hidden-amount balance under the /app/private surface. It does NOT authorize any spend on its own."; declare function buildKeyChallengeMessage(): Uint8Array; export { type CodeKeyMaterial, type CodeSeedFormat, PRIVATE_POOL_V2_KEY_CHALLENGE, type PrivatePoolKeyMaterial, buildKeyChallengeMessage, bytesToFieldBE, decodeCodeAuto, decodeCodeSeed, decodeShortCode, deriveCodeKeys, derivePrivatePoolKeys, deriveRootSk, deriveSubkey, detectCodeSeedFormat, encodeCodeSeed, encodePaymentAddress, encodeShortCode, fieldToBytes32BE, generateCodeSeed, parsePaymentAddress, poseidon1 };