import { z } from 'zod'; /** * Schema for KWS the `status` object on `age-verified` payloads. */ export declare const KWSAgeVerifiedStatusSchema: z.ZodObject<{ verified: z.ZodBoolean; verifiedMinimumAge: z.ZodNumber; transactionId: z.ZodOptional; errorCode: z.ZodOptional>; timestamp: z.ZodOptional; }, "strip", z.ZodTypeAny, { verified: boolean; verifiedMinimumAge: number; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }, { verified: boolean; verifiedMinimumAge: number; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }>; /** * The KWS `status` object on `age-verified` payloads. */ export type KWSAgeVerifiedStatus = z.infer; export declare function serializeKWSAgeVerifiedStatus(status: KWSAgeVerifiedStatus): string; /** * Parse KWS `age-verified` status object. */ export declare const parseKWSAgeVerifiedStatus: (raw: string) => KWSAgeVerifiedStatus; /** * Schema for KWS `age-verified` webhooks. * * Note: we don't use `.strict()` here so that we avoid breaking if KWS adds * fields, and some fields below are not strictly typed since we're not using * them. */ export declare const KWSAgeVerifiedWebhookSchema: z.ZodObject<{ name: z.ZodString; time: z.ZodString; orgId: z.ZodOptional; productId: z.ZodOptional; payload: z.ZodObject<{ email: z.ZodString; externalPayload: z.ZodString; status: z.ZodObject<{ verified: z.ZodBoolean; verifiedMinimumAge: z.ZodNumber; transactionId: z.ZodOptional; errorCode: z.ZodOptional>; timestamp: z.ZodOptional; }, "strip", z.ZodTypeAny, { verified: boolean; verifiedMinimumAge: number; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }, { verified: boolean; verifiedMinimumAge: number; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }>; }, "strip", z.ZodTypeAny, { email: string; externalPayload: string; status: { verified: boolean; verifiedMinimumAge: number; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }; }, { email: string; externalPayload: string; status: { verified: boolean; verifiedMinimumAge: number; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }; }>; }, "strip", z.ZodTypeAny, { name: string; time: string; orgId?: string | undefined; productId?: string | undefined; payload: { email: string; externalPayload: string; status: { verified: boolean; verifiedMinimumAge: number; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }; }; }, { name: string; time: string; orgId?: string | undefined; productId?: string | undefined; payload: { email: string; externalPayload: string; status: { verified: boolean; verifiedMinimumAge: number; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }; }; }>; /** * The raw KWS `age-verified` webhook body */ export type KWSWebhookAgeVerified = z.infer; /** * Parse KWS `age-verified` webhook body and its external payload. */ export declare const parseKWSAgeVerifiedWebhook: (raw: string) => KWSWebhookAgeVerified; //# sourceMappingURL=age-verified.d.ts.map