import type { ReadState } from './memory/read/envelope.js'; export interface AsyncResource extends ReadState { readonly data: T; } /** * Subscribe a component to `load()`. `null` loader → idle. The loader runs on * mount and whenever `deps` change (stale responses discarded); last-good data is * retained through a pending refetch or a failure (§1.1). */ export declare function useAsyncResource(load: (() => Promise) | null, empty: T, deps: readonly unknown[]): AsyncResource; //# sourceMappingURL=async.d.ts.map