import type { PayloadRequest, TypedUser } from 'payload'; import { z } from 'zod'; export type AcceptInvitationURLFn = (args: { token: string; user: TypedUser; req: PayloadRequest; defaultURL: string; }) => string | Promise; export type EmailSender = { email: string; name: string; }; export type EmailSenderOption = EmailSender | ((args: { req: PayloadRequest; user: TypedUser; }) => EmailSender | Promise); export interface VerificationFlowConfig { emailSender: EmailSenderOption; generateEmailHTML: (args: { req: PayloadRequest; verificationURL: string; user: TypedUser; }) => string | Promise; generateEmailSubject: (args: { req: PayloadRequest; verificationURL: string; user: TypedUser; }) => string | Promise; acceptInvitationURL: string | AcceptInvitationURLFn; } export type CreateFlow = { type: 'admin-invite'; } | { type: 'verification-flow'; name: string; config: VerificationFlowConfig; } | { type: 'direct-create'; }; declare const parsedCookieSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; options: z.ZodObject<{ httpOnly: z.ZodOptional; secure: z.ZodOptional; path: z.ZodOptional; sameSite: z.ZodOptional; maxAge: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export type ParsedCookie = z.infer; export declare const cookieStringSchema: z.ZodPipe>; export type InviteError = 'INVALID_TOKEN' | 'ALREADY_ACCEPTED'; export type SanitizedUser = Omit; export type GetInviteDataResult = { success: true; user: SanitizedUser; } | { success: false; error: InviteError; }; export type AcceptInviteResult = { success: true; user: TypedUser; token: string; cookie: ParsedCookie; rawCookie: string; } | { success: false; error: InviteError; }; export declare const reinviteSchema: z.ZodObject<{ userId: z.ZodUnion; }, z.core.$strip>; export declare const acceptInviteSchema: z.ZodObject<{ token: z.ZodString; password: z.ZodString; }, z.core.$strip>; export declare const verifyAndLoginSchema: z.ZodObject<{ token: z.ZodString; }, z.core.$strip>; export type ReinviteInput = z.infer; export {}; //# sourceMappingURL=types.d.ts.map