import { z } from "zod/v4-mini"; declare const webhookSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{ data: z.ZodMiniObject<{}, z.core.$strip>; type: z.ZodMiniLiteral<"pay.onchain-transaction">; version: z.ZodMiniLiteral<1>; }, z.core.$strip>, z.ZodMiniObject<{ data: z.ZodMiniObject<{ action: z.ZodMiniEnum<{ TRANSFER: "TRANSFER"; BUY: "BUY"; SELL: "SELL"; }>; clientId: z.ZodMiniString; destinationAmount: z.ZodMiniBigInt; destinationToken: z.ZodMiniObject<{ address: z.ZodMiniString; chainId: z.ZodMiniNumber; decimals: z.ZodMiniNumber; iconUri: z.ZodMiniOptional>; name: z.ZodMiniString; priceUsd: z.ZodMiniNumber; symbol: z.ZodMiniString; }, z.core.$strip>; developerFeeBps: z.ZodMiniNumber; developerFeeRecipient: z.ZodMiniString; originAmount: z.ZodMiniBigInt; originToken: z.ZodMiniObject<{ address: z.ZodMiniString; chainId: z.ZodMiniNumber; decimals: z.ZodMiniNumber; iconUri: z.ZodMiniOptional>; name: z.ZodMiniString; priceUsd: z.ZodMiniNumber; symbol: z.ZodMiniString; }, z.core.$strip>; paymentId: z.ZodMiniString; paymentLinkId: z.ZodMiniOptional>; purchaseData: z.ZodMiniOptional, z.ZodMiniUnknown>>; receiver: z.ZodMiniString; sender: z.ZodMiniString; status: z.ZodMiniEnum<{ PENDING: "PENDING"; COMPLETED: "COMPLETED"; FAILED: "FAILED"; }>; transactions: z.ZodMiniArray; transactionHash: z.ZodMiniString; }, z.core.$strip>>; type: z.ZodMiniString; }, z.core.$strip>; type: z.ZodMiniLiteral<"pay.onchain-transaction">; version: z.ZodMiniLiteral<2>; }, z.core.$strip>]>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{ data: z.ZodMiniObject<{}, z.core.$strip>; type: z.ZodMiniLiteral<"pay.onramp-transaction">; version: z.ZodMiniLiteral<1>; }, z.core.$strip>, z.ZodMiniObject<{ data: z.ZodMiniObject<{ amount: z.ZodMiniBigInt; currency: z.ZodMiniString; currencyAmount: z.ZodMiniNumber; id: z.ZodMiniString; onramp: z.ZodMiniString; paymentLinkId: z.ZodMiniOptional>; purchaseData: z.ZodMiniUnknown; receiver: z.ZodMiniString; sender: z.ZodMiniOptional>; status: z.ZodMiniEnum<{ PENDING: "PENDING"; COMPLETED: "COMPLETED"; FAILED: "FAILED"; }>; token: z.ZodMiniObject<{ address: z.ZodMiniString; chainId: z.ZodMiniNumber; decimals: z.ZodMiniNumber; iconUri: z.ZodMiniOptional>; name: z.ZodMiniString; priceUsd: z.ZodMiniNumber; symbol: z.ZodMiniString; }, z.core.$strip>; transactionHash: z.ZodMiniOptional>; }, z.core.$strip>; type: z.ZodMiniLiteral<"pay.onramp-transaction">; version: z.ZodMiniLiteral<2>; }, z.core.$strip>]>]>; export type WebhookPayload = Exclude, { version: 1; }>; /** * Parses an incoming Bridge webhook payload. * * @param payload - The raw text body received from thirdweb. * @param headers - The webhook headers received from thirdweb. * @param secret - The webhook secret to verify the payload with. * @bridge Webhook * @beta */ export declare function parse( /** * Raw text body received from thirdweb. */ payload: string, /** * The webhook headers received from thirdweb. */ headers: Record, /** * The webhook secret to verify the payload with. */ secret: string, /** * The tolerance in seconds for the timestamp verification. */ tolerance?: number, // Default to 5 minutes if not specified /** * Add various validations to the parsed payload to ensure it matches the expected values. Throws error if any validation fails. */ verify?: { /** * Verify that the payload's the destination token amount (in wei) is greater than `minDestinationAmount` value */ minDestinationAmount?: bigint; /** * Verify that the payload's destination token address is the same as `destinationTokenAddress` value */ destinationTokenAddress?: string; /** * Verify that the payload's destination chain id is the same as `destinationChainId` value */ destinationChainId?: number; /** * Verify that the payload's receiver address is the same as `receiverAddress` value. */ receiverAddress?: string; }): Promise; export {}; //# sourceMappingURL=Webhook.d.ts.map