import type { Optional } from "@johnqh/types"; import type { WildduckAuthResponse as AuthenticationResponse, WildduckPreAuthResponse as PreAuthResponse, WildduckAuthenticateRequest, WildduckConfig, WildduckPreAuthRequest } from "@johnqh/types"; type AuthenticateRequest = WildduckAuthenticateRequest; type PreAuthRequest = WildduckPreAuthRequest; interface UseWildduckAuthReturn { authenticate: (params: Omit) => Promise; isAuthenticating: boolean; authError: Optional; authData: Optional; preAuth: (params: Omit) => Promise; isPreAuthing: boolean; preAuthError: Optional; logout: (token?: string) => Promise<{ success: boolean; }>; isLoggingOut: boolean; logoutError: Optional; getAuthStatus: () => Promise<{ authenticated: boolean; user?: any; }>; isLoading: boolean; error: Optional; clearError: () => void; } declare const useWildduckAuth: (config: WildduckConfig, devMode?: boolean) => UseWildduckAuthReturn; export { useWildduckAuth, type UseWildduckAuthReturn }; //# sourceMappingURL=useWildduckAuth.d.ts.map