import { defaultRetryDelay } from './internal/runtime'; import type { QueryStoreConfig, QueryStoreState } from './queryStore/types'; import type { BaseStoreOptions, OptionallyPersistedStore, PersistedStore, StateCreator, Store } from './types'; export { defaultRetryDelay }; export { getQueryKey, parseQueryKey } from './queryStore/queryKey'; export { queryParam } from './queryStore/queryParam'; export type { QueryParam, QueryParamConfig, QueryParamKey, ReactiveParam } from './queryStore/queryParam'; /** * Creates a persisted, query-enabled store with data fetching capabilities (sync storage). * * @template TQueryFnData - The raw data type returned by the fetcher * @template TParams - Parameters passed to the fetcher function * @template TData - The transformed data type, if applicable (defaults to `TQueryFnData`) * @template PersistedState - The persisted state type, if a stricter type than `Partial` is desired */ export declare function createQueryStore = Record, TData = TQueryFnData, PersistedState extends Partial> = Partial>, PersistReturn extends void = void>(config: QueryStoreConfig, options: BaseStoreOptions, PersistedState, PersistReturn>): PersistedStore, PersistedState, PersistReturn>; /** * Creates a persisted, query-enabled store with data fetching capabilities (async storage). * * @template TQueryFnData - The raw data type returned by the fetcher * @template TParams - Parameters passed to the fetcher function * @template TData - The transformed data type, if applicable (defaults to `TQueryFnData`) * @template PersistedState - The persisted state type, if a stricter type than `Partial` is desired */ export declare function createQueryStore = Record, TData = TQueryFnData, PersistedState extends Partial> = Partial>, PersistReturn extends Promise = Promise>(config: QueryStoreConfig, options: BaseStoreOptions, PersistedState, PersistReturn>): PersistedStore, PersistedState, PersistReturn>; /** * Creates a persisted, query-enabled store with data fetching capabilities (sync storage). * * @template TQueryFnData - The raw data type returned by the fetcher * @template TParams - Parameters passed to the fetcher function * @template CustomState - User-defined custom store state * @template TData - The transformed data type, if applicable (defaults to `TQueryFnData`) * @template PersistedState - The persisted state type, if a stricter type than `Partial` is desired */ export declare function createQueryStore = Record, CustomState = unknown, TData = TQueryFnData, PersistedState extends Partial> = Partial>, PersistReturn extends void = void>(config: QueryStoreConfig, stateCreator: StateCreator, CustomState>, options: BaseStoreOptions, PersistedState, PersistReturn>): PersistedStore, PersistedState, PersistReturn>; /** * Creates a persisted, query-enabled store with data fetching capabilities (async storage). * * @template TQueryFnData - The raw data type returned by the fetcher * @template TParams - Parameters passed to the fetcher function * @template CustomState - User-defined custom store state * @template TData - The transformed data type, if applicable (defaults to `TQueryFnData`) * @template PersistedState - The persisted state type, if a stricter type than `Partial` is desired */ export declare function createQueryStore = Record, CustomState = unknown, TData = TQueryFnData, PersistedState extends Partial> = Partial>, PersistReturn extends Promise = Promise>(config: QueryStoreConfig, stateCreator: StateCreator, CustomState>, options: BaseStoreOptions, PersistedState, PersistReturn>): PersistedStore, PersistedState, PersistReturn>; /** * Creates a query-enabled store with data fetching capabilities. * * @template TQueryFnData - The raw data type returned by the fetcher * @template TParams - Parameters passed to the fetcher function * @template CustomState - User-defined custom store state * @template TData - The transformed data type, if applicable (defaults to `TQueryFnData`) */ export declare function createQueryStore = Record, CustomState = unknown, TData = TQueryFnData>(config: QueryStoreConfig, stateCreator: StateCreator, CustomState>, options?: BaseStoreOptions>): Store>; /** * Creates a query-enabled store with data fetching capabilities. * * @template TQueryFnData - The raw data type returned by the fetcher * @template TParams - Parameters passed to the fetcher function * @template TData - The transformed data type, if applicable (defaults to `TQueryFnData`) */ export declare function createQueryStore = Record, TData = TQueryFnData>(config: QueryStoreConfig, options?: BaseStoreOptions>): Store>; /** * Creates a conditionally persisted, query-enabled store with data-fetching capabilities * and custom state (sync storage). * * `options.persist` may be `undefined` – the returned store exposes `persist?`. * * @template TQueryFnData - The raw data type returned by the fetcher * @template TParams - Parameters passed to the fetcher function * @template CustomState - User-defined custom store state * @template TData - The transformed data type, if applicable (defaults to `TQueryFnData`) * @template PersistedState - The persisted state type, if a stricter type than `Partial` is desired */ export declare function createQueryStore = Record, CustomState = unknown, TData = TQueryFnData, PersistedState extends Partial> = Partial>, PersistReturn extends void = void>(config: QueryStoreConfig, stateCreator: StateCreator, CustomState>, options?: BaseStoreOptions, PersistedState, PersistReturn>): OptionallyPersistedStore, PersistedState, PersistReturn>; /** * Creates a conditionally persisted, query-enabled store with data-fetching capabilities * and custom state (async storage). * * `options.persist` may be `undefined` – the returned store exposes `persist?`. * * @template TQueryFnData - The raw data type returned by the fetcher * @template TParams - Parameters passed to the fetcher function * @template CustomState - User-defined custom store state * @template TData - The transformed data type, if applicable (defaults to `TQueryFnData`) * @template PersistedState - The persisted state type, if a stricter type than `Partial` is desired */ export declare function createQueryStore = Record, CustomState = unknown, TData = TQueryFnData, PersistedState extends Partial> = Partial>, PersistReturn extends Promise = Promise>(config: QueryStoreConfig, stateCreator: StateCreator, CustomState>, options?: BaseStoreOptions, PersistedState, PersistReturn>): OptionallyPersistedStore, PersistedState, PersistReturn>; /** * Creates a conditionally persisted, query-enabled store with data fetching capabilities (sync storage). * * `options.persist` may be `undefined` – the returned store exposes `persist?`. * * @template TQueryFnData - The raw data type returned by the fetcher * @template TParams - Parameters passed to the fetcher function * @template TData - The transformed data type, if applicable (defaults to `TQueryFnData`) * @template PersistedState - The persisted state type, if a stricter type than `Partial` is desired */ export declare function createQueryStore = Record, TData = TQueryFnData, PersistedState extends Partial> = Partial>, PersistReturn extends void = void>(config: QueryStoreConfig, options: BaseStoreOptions, PersistedState, PersistReturn> | undefined): OptionallyPersistedStore, PersistedState, PersistReturn>; /** * Creates a conditionally persisted, query-enabled store with data fetching capabilities (async storage). * * `options.persist` may be `undefined` – the returned store exposes `persist?`. * * @template TQueryFnData - The raw data type returned by the fetcher * @template TParams - Parameters passed to the fetcher function * @template TData - The transformed data type, if applicable (defaults to `TQueryFnData`) * @template PersistedState - The persisted state type, if a stricter type than `Partial` is desired */ export declare function createQueryStore = Record, TData = TQueryFnData, PersistedState extends Partial> = Partial>, PersistReturn extends Promise = Promise>(config: QueryStoreConfig, options: BaseStoreOptions, PersistedState, PersistReturn> | undefined): OptionallyPersistedStore, PersistedState, PersistReturn>; //# sourceMappingURL=createQueryStore.d.ts.map