import type Stripe from 'stripe'; type NarrowedStripeError = Stripe.errors.StripeError & { type: T; }; /** * Type predicate to check if an unknown value is a Stripe Event. */ export declare function isStripeEvent(event: unknown): event is Stripe.Event; /** * Returns the error if it matches or throw it. */ export declare function checkStripeError(err: unknown, type: T): NarrowedStripeError; export declare function assertStripeEvent(body: unknown): asserts body is Stripe.Event; export {};