import { ParentCache } from "./ParentCache.js"; import { UnassignedState } from "./useUpdatableDisposableState.js"; //#region src/useLazyDisposableState.d.ts /** * useLazyDisposableState * - Takes a mutable parent cache and a factory function * - Returns { state: T } * * This lazily loads the disposable item using useCachedResponsivePrecommitValue, then * (on commit) sets it in state. The item continues to be returned after * commit and is disposed when the hook unmounts. */ declare function useLazyDisposableState(parentCache: ParentCache>): { state: T; }; //#endregion export { useLazyDisposableState }; //# sourceMappingURL=useLazyDisposableState.d.ts.map