export type IdentifierType = 'email' | 'username' | 'phone'; export type WebsiteMeta = Record; export interface PasswordRules { minLength?: number; requireUppercase?: boolean; requireNumber?: boolean; requireSpecialChar?: boolean; } export interface PasswordResetTheme { backgroundColor?: string; cardBackgroundColor?: string; accentColor?: string; textColor?: string; mutedTextColor?: string; inputBackgroundColor?: string; inputBorderColor?: string; errorColor?: string; successColor?: string; cardBorderRadius?: string; cardBorderColor?: string; cardMaxWidth?: string; fontFamily?: string; } export interface PasswordResetTexts { requestTitle: string; requestSubtitle?: string; identifierLabelEmail: string; identifierPlaceholderEmail: string; identifierLabelPhone: string; identifierPlaceholderPhone: string; identifierLabelUsername: string; identifierPlaceholderUsername: string; submitRequestButton: string; submitRequestLoadingButton: string; requestSuccessMessage: string; formTitle: string; formSubtitle?: string; newPasswordLabel: string; newPasswordPlaceholder: string; confirmPasswordLabel: string; confirmPasswordPlaceholder: string; submitFormButton: string; submitFormLoadingButton: string; formSuccessMessage: string; successButtonText?: string; errorRequired: string; errorInvalidEmail: string; errorPasswordMismatch: string; errorPasswordInvalid: string; errorGeneric: string; ruleMinLength: string; ruleUppercase: string; ruleNumber: string; ruleSpecialChar: string; } export interface PasswordResetRequestPayload { identifier: string; identifierType: IdentifierType; websiteId: string; websiteMeta?: WebsiteMeta; } export interface PasswordResetConfirmPayload { token: string; newPassword: string; confirmPassword: string; websiteId: string; } export interface PasswordResetRequestProps { websiteId: string; identifierType: IdentifierType; locale?: string; logoUrl?: string; logoAlt?: string; theme?: Partial; texts?: Partial; websiteMeta?: WebsiteMeta; onSuccess: (payload: PasswordResetRequestPayload) => void | Promise; onError?: (error: Error) => void; } export interface PasswordResetFormProps { token: string; websiteId: string; locale?: string; logoUrl?: string; logoAlt?: string; theme?: Partial; texts?: Partial; passwordRules?: PasswordRules; onSuccess: (payload: PasswordResetConfirmPayload) => void | Promise; onError?: (error: Error) => void; onSuccessComplete?: () => void; } //# sourceMappingURL=types.d.ts.map