import type { OpenfortHookOptions } from '../../../types.js'; /** * Hook for user sign out operations * * This hook manages user logout functionality, clearing authentication state * and disconnecting from all services. It provides a clean way to sign out users * while handling any cleanup operations and providing loading/error states. * The hook ensures complete logout by clearing all stored credentials and state. * * @param hookOptions - Optional configuration with callback functions * @returns Current sign out state and actions * * @example * ```tsx * import { useSignOut } from '@openfort/react' * * function SignOutButton() { * const { signOut, isLoading, error } = useSignOut() * const run = async () => { * const result = await signOut() * if (result.error) return * console.log('Signed out') * } * return * } * ``` */ export declare function useSignOut(hookOptions?: OpenfortHookOptions): { signOut: (options?: OpenfortHookOptions) => Promise<{}>; isLoading: boolean; isError: boolean; isSuccess: boolean; error: import("../../../types.js").OpenfortError | null | undefined; };