import { DependencyList, EffectCallback } from 'react'; import { UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { User, ProvidersResponse as ProvidersResponse$1, PermissionsResponse as PermissionsResponse$1, Organization as Organization$1, OrganizationsResponse as OrganizationsResponse$1, AriesPaginatedResponse } from '@availity/api-axios'; /** * @deprecated useEffectAsync is an anti-pattern. Use useEffect with an IIFE or extract async logic into a separate function instead. */ declare function useEffectAsync(effect: () => void, inputs?: DependencyList): void; declare function useMount(effect: EffectCallback): void; declare function useTimeout(ms?: number): boolean; declare function useToggle(initialState?: boolean): [boolean, (state?: boolean) => void]; interface CurrentRegion { code: string; value: string; } declare function useCurrentRegion(options?: Omit, 'queryKey' | 'queryFn'>): UseQueryResult; /** @deprecated Use `User` from `@availity/api-axios` instead */ type CurrentUser = User; declare function useCurrentUser(options?: Omit, 'queryKey' | 'queryFn'>): UseQueryResult; /** @deprecated Use `ProvidersResponse` from `@availity/api-axios` instead */ type ProvidersResponse = ProvidersResponse$1; interface AvProvidersConfig { customerId: string; [key: string]: unknown; } declare function useProviders(config: AvProvidersConfig, options?: Omit, 'queryKey' | 'queryFn'>): UseQueryResult; /** @deprecated Use `PermissionsResponse` from `@availity/api-axios` instead */ type PermissionsResponse = PermissionsResponse$1; declare function usePermissions(config: string | string[], options?: Omit, 'queryKey' | 'queryFn'>): UseQueryResult; /** @deprecated Use `Organization` from `@availity/api-axios` instead */ type Organization = Organization$1; /** @deprecated Use `OrganizationsResponse` from `@availity/api-axios` instead */ type OrganizationsResponse = OrganizationsResponse$1; declare function useOrganizations(config: Record, options?: Omit, 'queryKey' | 'queryFn'>): UseQueryResult; declare const useUpdateNav: () => void; interface Dimensions { width: number; height: number; } declare function useWindowDimensions(): Dimensions; type StashData = Record; declare function useStash(sessionId: string, options?: Omit, 'queryKey' | 'queryFn'>): UseQueryResult; /** @deprecated Use `AriesPaginatedResponse` from `@availity/api-axios` instead */ type AriesHookBase = AriesPaginatedResponse; export { type AriesHookBase, type AvProvidersConfig, type CurrentRegion, type CurrentUser, type Dimensions, type Organization, type OrganizationsResponse, type PermissionsResponse, type ProvidersResponse, useCurrentRegion, useCurrentUser, useEffectAsync, useMount, useOrganizations, usePermissions, useProviders, useStash, useTimeout, useToggle, useUpdateNav, useWindowDimensions };