import * as React from 'react';
import { I as IAuthClient, U as UseAuthReturn } from '../../types-Dlu52uDy.js';
export { c as AuthResult, a as User } from '../../types-Dlu52uDy.js';
import '../../enums-Dume-V5Y.js';
import 'drizzle-orm/pg-core';

declare function useAuth(apiClient: IAuthClient): 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 { IAuthClient as BaseApiClient, UseAuthReturn, useAuth, useAuthForm };
