import type { Hex } from "../types/evm.js"; import type { SingleWithdrawWasm, WithdrawNovaWasm } from "../assets/wasm/web/zerc20_wasm.js"; import type { AggregationTreeState, BurnArtifacts, ChainEvents, FetchAggregationTreeStateParams, FetchLocalTeleportProofsParams, FetchTransferEventsParams, GenerateGlobalTeleportProofsParams, GlobalTeleportProofWithEvent, LocalTeleportProof, SecretAndTweak, SeparateEventsByEligibilityParams, SeparatedChainEvents } from "../types.js"; import { WasmRuntime } from "./runtime.js"; import type { WasmRuntimeOptions } from "./types.js"; /** * Returns the default singleton WasmRuntime instance. */ export declare function getDefaultWasmRuntime(): WasmRuntime; /** * Configures the default WASM runtime with the specified options. */ export declare function configureWasmLocator(options?: WasmRuntimeOptions): void; /** * Gets the seed message for signing. */ export declare function getSeedMessage(): Promise; /** * Derives a seed from a wallet signature. * Takes a sign function to keep the SDK wallet-agnostic. */ export declare function deriveSeed(signMessage: (message: string) => Promise): Promise; /** * Derives payment advice from a seed. */ export declare function derivePaymentAdvice(seedHex: string, paymentAdviceIdHex: string, recipientChainId: bigint | number, recipientAddress: string): Promise; /** * Derives a single invoice from a seed. */ export declare function deriveInvoiceSingle(seedHex: string, invoiceIdHex: string, recipientChainId: bigint | number, recipientAddress: string): Promise; /** * Derives a batch invoice from a seed. */ export declare function deriveInvoiceBatch(seedHex: string, invoiceIdHex: string, subId: number, recipientChainId: bigint | number, recipientAddress: string): Promise; /** * Builds a full burn address for a recipient. */ export declare function buildFullBurnAddress(recipientChainId: bigint | number, recipientAddress: string, secretHex: string, tweakHex: string): Promise; /** * Decodes a full burn address payload. */ export declare function decodeFullBurnAddress(payloadHex: string): Promise; /** * Computes the general recipient field element. */ export declare function generalRecipientFr(chainId: bigint | number, recipientAddress: string, tweakHex: string): Promise; /** * Computes the aggregation root from a snapshot. */ export declare function aggregationRoot(snapshot: readonly string[]): Promise; /** * Generates a merkle proof for the aggregation tree. */ export declare function aggregationMerkleProof(snapshot: readonly string[], index: number): Promise; /** * Fetches the aggregation tree state from the indexer. */ export declare function fetchAggregationTreeState(params: FetchAggregationTreeStateParams): Promise; /** * Fetches transfer events from the indexer. */ export declare function fetchTransferEvents(params: FetchTransferEventsParams): Promise; /** * Separates events by their eligibility for inclusion. */ export declare function separateEventsByEligibility(params: SeparateEventsByEligibilityParams): Promise; /** * Fetches local teleport merkle proofs from the indexer. */ export declare function fetchLocalTeleportMerkleProofs(params: FetchLocalTeleportProofsParams): Promise; /** * Generates global teleport merkle proofs. */ export declare function generateGlobalTeleportMerkleProofs(params: GenerateGlobalTeleportProofsParams): Promise; /** * Creates a single withdraw WASM program for Groth16 proofs. */ export declare function createSingleWithdrawWasm(localPk: Uint8Array, localVk: Uint8Array, globalPk: Uint8Array, globalVk: Uint8Array): Promise; /** * Creates a withdraw Nova WASM program for incremental proofs. */ export declare function createWithdrawNovaWasm(localPp: Uint8Array, localVp: Uint8Array, globalPp: Uint8Array, globalVp: Uint8Array): Promise; //# sourceMappingURL=functions.d.ts.map