/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * Reads a period's neighbours ahead once the period itself has landed, as a * tracked read of its own. Call it in the component that reads the period, * after the period's own read, so a step moves both in one render: the * neighbour stepped to is the period's read from then on, and only the reads * of the periods no longer either side lose their reader. * * @param landed - Whether every read the period in view needs has landed: until then nothing is read ahead * @param neighbours - The periods read ahead, nearest first; memoised, so the read is not built again each render * @param read - Reads one neighbour's reads, as the period's own read reads its period's; memoised as well * @typeParam P - What names a period: its first day, or its range */ export declare function useReadAhead

(landed: boolean, neighbours: readonly P[], read: (period: P) => void): void; //# sourceMappingURL=use-read-ahead.d.ts.map