import { UseAsyncState, ConfigWithKeyWithSelector, ConfigWithKeyWithoutSelector, ConfigWithSourceWithSelector, ConfigWithSourceWithoutSelector, ConfigWithProducerWithSelector, ConfigWithProducerWithoutSelector, MixedConfig, LegacyHookReturn } from './types.js'; import { State, Source, Producer } from 'async-states'; declare function useAsync_export(config: string, deps?: unknown[]): UseAsyncState; declare function useAsync_export(config: Source, deps?: unknown[]): UseAsyncState; declare function useAsync_export(config: Producer, deps?: unknown[]): UseAsyncState; declare function useAsync_export(config: ConfigWithKeyWithSelector, deps?: unknown[]): UseAsyncState; declare function useAsync_export(config: ConfigWithKeyWithoutSelector, deps?: unknown[]): UseAsyncState; declare function useAsync_export(config: ConfigWithSourceWithSelector, deps?: unknown[]): UseAsyncState; declare function useAsync_export(config: ConfigWithSourceWithoutSelector, deps?: unknown[]): UseAsyncState; declare function useAsync_export(config: ConfigWithProducerWithSelector, deps?: unknown[]): UseAsyncState; declare function useAsync_export(config: ConfigWithProducerWithoutSelector, deps?: unknown[]): UseAsyncState; declare function useAsync_export(config: MixedConfig, deps?: unknown[]): UseAsyncState; declare namespace useAsync_export { var auto: typeof useAuto; } declare function useAuto(config: MixedConfig, deps?: unknown[]): LegacyHookReturn; type UseAsyncReturn = ReturnType>; type UseAsyncParams = Parameters>; type UseAsyncType = { >(...args: UseAsyncParams): UseAsyncReturn; auto>(...args: UseAsyncParams): UseAsyncReturn; }; declare const useAsync: UseAsyncType; declare const useAsyncState: UseAsyncType; export { useAsync, useAsyncState };