/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * The day a sheet reads and writes its columns from data at (#1559): the * browser's local calendar date, at UTC midnight — the `day` an app's `read`, * `write` and `mark` are given, so a column keyed by date reads the day the * viewer is in, wherever they are. A host with a clock of its own gives it * ({@link SheetDayProvider}) — the Record's, so its cells from data turn over * with its age cells — and a sheet under none keeps its own, read again at each * whole minute while it reads anything at the day, and drawn again only when * the day turns. * * @packageDocumentation */ import { type ReactNode } from "react"; /** * The day an instant falls on, as a sheet's columns from data are given it: its local calendar date, at UTC midnight. * * @param now - The instant * @returns Its day */ export declare function sheetDayOf(now: Date): Date; /** * Gives the sheets under it the day of a host's clock — one `Date` while the day holds, so a sheet reads its columns * from data again only as the day turns, however often the clock moves. * * @param props - The host's now, and the parts under it * @returns The provider */ export declare function SheetDayProvider({ now, children }: { now: Date; children: ReactNode; }): import("react/jsx-runtime").JSX.Element; /** * The day a sheet's columns from data are read and written at: its host's, else its own — read again at each whole * minute while it `reads`, the sheet drawn again only as the day turns. * * @param reads - Whether the sheet reads anything at the day: a column from data, or a mark * @returns The day */ export declare function useSheetDay(reads: boolean): Date; //# sourceMappingURL=day.d.ts.map