import { DecryptedNote } from './encryption.cjs'; export { fieldToBytes32BE, poseidon1 } from './keys.cjs'; type EncryptedNoteApiBlob = { pda: string; commitment_hex: string; ephemeral_pk_hex: string; ciphertext_b64: string; ciphertext_len: number; }; type CommitmentLeafApiEntry = { pda: string; commitment_hex: string; commitment_decimal: string; leaf_index: number; block_slot: number; }; type NullifierStatusApi = { network: string; nullifier: string; consumed: boolean; used_at_slot?: number; pda?: string; }; type OwnedNote = DecryptedNote & { commitment: Uint8Array; commitmentHex: string; commitmentField: bigint; leafIndex: number | null; blockSlot: number | null; spent: boolean; spentAtSlot?: number; }; declare function fetchEncryptedNoteBlobs(args: { apiBaseUrl: string; network: string; sinceSlot?: number; }): Promise; declare function fetchCommitmentLeaves(args: { apiBaseUrl: string; network: string; since?: number; }): Promise; declare function fetchNullifierStatus(args: { apiBaseUrl: string; network: string; nullifier: bigint | Uint8Array | string; }): Promise; declare function fetchAllNullifiers(args: { apiBaseUrl: string; network: string; }): Promise; declare function trialDecryptBlobs(args: { blobs: EncryptedNoteApiBlob[]; viewingSk: Uint8Array; limit?: number; }): Array<{ blob: EncryptedNoteApiBlob; note: DecryptedNote; }>; declare function discoverOwnedNotes(args: { apiBaseUrl: string; network: string; viewingSk: Uint8Array; }): Promise; declare function deriveNullifier(commitmentField: bigint, nullifierSkField: bigint): Promise; declare function attachSpentStatus(args: { apiBaseUrl: string; network: string; notes: OwnedNote[]; nullifierSkField: bigint; }): Promise; declare function attachSpentStatusSequential(args: { apiBaseUrl: string; network: string; notes: OwnedNote[]; nullifierSkField: bigint; }): Promise; declare function totalUnspentBalance(notes: OwnedNote[]): bigint; declare function balanceBreakdown(notes: OwnedNote[]): { totalMicroUsdc: bigint; unspentCount: number; spentCount: number; }; export { type CommitmentLeafApiEntry, type EncryptedNoteApiBlob, type NullifierStatusApi, type OwnedNote, attachSpentStatus, attachSpentStatusSequential, balanceBreakdown, deriveNullifier, discoverOwnedNotes, fetchAllNullifiers, fetchCommitmentLeaves, fetchEncryptedNoteBlobs, fetchNullifierStatus, totalUnspentBalance, trialDecryptBlobs };