import type IrisGridModel from './IrisGridModel'; import { type DehydratedGridState, type DehydratedIrisGridState, type HydratedGridState, type HydratedIrisGridState } from './IrisGridUtils'; /** * Creates a dehydrator function for grid state that is memoized on the last call. * Only tracks 1 state at a time. If the model and input states are equal, returns the same dehydrated state object reference. * @returns A dehydrator function memoized on the last call */ declare function makeMemoizedGridStateDehydrator(): (model: IrisGridModel, gridState: HydratedGridState) => DehydratedGridState; /** * Creates a dehydrator function for iris grid state that is memoized on the last call. * Only tracks 1 state at a time. If the model and input states are equal, returns the same dehydrated state object reference. * @returns A dehydrator function memoized on the last call */ declare function makeMemoizedIrisGridStateDehydrator(): (model: IrisGridModel, irisGridState: HydratedIrisGridState) => DehydratedIrisGridState; /** * Creates a dehydrator function for grid and iris grid state that is memoized on the last call. * Only tracks 1 state at a time. If the model and input states are equal, returns the same dehydrated state object reference. * Combines the dehydrated grid and iris grid states into a single object. * @returns A dehydrator function memoized on the last call */ declare function makeMemoizedCombinedGridStateDehydrator(): (model: IrisGridModel, irisGridState: HydratedIrisGridState, gridState: HydratedGridState) => DehydratedIrisGridState & DehydratedGridState; export declare const IrisGridCacheUtils: { makeMemoizedGridStateDehydrator: typeof makeMemoizedGridStateDehydrator; makeMemoizedIrisGridStateDehydrator: typeof makeMemoizedIrisGridStateDehydrator; makeMemoizedCombinedGridStateDehydrator: typeof makeMemoizedCombinedGridStateDehydrator; }; export {}; //# sourceMappingURL=IrisGridCacheUtils.d.ts.map