import type { Field } from '../../form-engine'; import type { AuthResponse, CustomAuthConfig } from '../types'; import type { BaseAuthPageProps } from './AuthFormUtils'; /** * Props for the PagamioCustomerRegistrationPage component * @template T - Authentication configuration type */ interface PagamioCustomerRegistrationPageProps extends BaseAuthPageProps { /** Customizable text content */ text?: { registerTitle: string; registerSubtitle: string; emailLabel: string; firstNameLabel: string; lastNameLabel: string; phoneLabel: string; passwordLabel: string; confirmPasswordLabel: string; registerButtonLabel: string; loadingButtonLabel: string; backToLoginLabel: string; }; customRegistrationFields?: Field[]; /** Custom data mapper function to transform form data before sending it to authService.register */ mapFormDataToRegistration?: (formData: Record) => Record; /** Callback handlers */ onRegistrationSuccess?: (authResponse?: AuthResponse) => void; onRegistrationError?: (error: Error) => void; onBackToLogin?: () => void; } export declare const customerRegistrationPageDefaultText: { registerTitle: string; registerSubtitle: string; emailLabel: string; firstNameLabel: string; lastNameLabel: string; phoneLabel: string; passwordLabel: string; confirmPasswordLabel: string; registerButtonLabel: string; loadingButtonLabel: string; backToLoginLabel: string; }; /** * Customer Registration Page component * @template T - Authentication configuration type */ export declare function PagamioCustomerRegistrationPage({ logo, text, customRegistrationFields, mapFormDataToRegistration, appLabel, onRegistrationSuccess, onRegistrationError, onBackToLogin, className, }: Readonly>): import("react/jsx-runtime").JSX.Element; export default PagamioCustomerRegistrationPage; export type { PagamioCustomerRegistrationPageProps };