import * as React from 'react';
import { b as BaseApiClient, U as UseAuthReturn } from '../../types-CroexXnI.js';
export { A as AuthResult, a as User } from '../../types-CroexXnI.js';
import '../../enums-Dume-V5Y.js';
import 'drizzle-orm/pg-core';

declare function useAuth(apiClient: BaseApiClient): UseAuthReturn;
/**
 * 表单验证 Hook
 *
 * @example
 * ```typescript
 * const { values, errors, handleChange, handleBlur, validate } = useAuthForm({
 *   email: '',
 *   password: ''
 * })
 * ```
 */
declare function useAuthForm<T extends Record<string, any>>(initialValues: T): {
    values: T;
    errors: Partial<Record<keyof T, string>>;
    touched: Partial<Record<keyof T, boolean>>;
    handleChange: (field: keyof T, value: any) => void;
    handleBlur: (field: keyof T) => void;
    validate: (validationRules: Partial<Record<keyof T, (value: any) => string | undefined>>) => boolean;
    reset: () => void;
    setValues: React.Dispatch<React.SetStateAction<T>>;
    setErrors: React.Dispatch<React.SetStateAction<Partial<Record<keyof T, string>>>>;
};

export { BaseApiClient, UseAuthReturn, useAuth, useAuthForm };
