import { type ReconcileOptions } from "solid-js/store"; /** * As `createAsync` and `createAsyncStore` are wrappers for `createResource`, * this type allows to support `latest` field for these primitives. * It will be removed in the future. */ export type AccessorWithLatest = { (): T; latest: T; }; export declare function createAsync(fn: (prev: T) => Promise, options: { name?: string; initialValue: T; deferStream?: boolean; }): AccessorWithLatest; export declare function createAsync(fn: (prev: T | undefined) => Promise, options?: { name?: string; initialValue?: T; deferStream?: boolean; }): AccessorWithLatest; export declare function createAsyncStore(fn: (prev: T) => Promise, options: { name?: string; initialValue: T; deferStream?: boolean; reconcile?: ReconcileOptions; }): AccessorWithLatest; export declare function createAsyncStore(fn: (prev: T | undefined) => Promise, options?: { name?: string; initialValue?: T; deferStream?: boolean; reconcile?: ReconcileOptions; }): AccessorWithLatest;