/** * Create a getter that lazily computes and caches a value. * The getter calls `compute` on first invocation and returns * the cached result on subsequent calls. * * Designed for use with `useMemo`: * ```ts * const getBounds = useMemo( * () => createLazyGetter(() => computeBounds(data)), * [data] * ); * ``` * When `useMemo` re-runs (deps changed), a fresh getter with an * empty cache is created, discarding the old one. */ export declare const createLazyGetter: (compute: () => TValue) => (() => TValue);