/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type AllocationValue, type AllocationView } from "./model.js"; /** * The board's view: its layout and its day, the first the payload's, today by default — the page's own (#1398, * `shared/schedule/page-view.ts`), as the window it writes into its source is: another page keeping a view moves * neither, and a reload opens on the view kept last under the board's key. */ export interface AllocationWindow { view: AllocationView; /** The layouts this board offers, in the switch's order: the `views` prop's. */ layouts: readonly AllocationView["layout"][]; setView: (next: AllocationView) => void; /** The plan day: the view's UTC midnight. */ day: Date; /** Steps the day by whole days. */ step: (days: number) => void; } /** * The board's view and its day (see {@link AllocationWindow}). * * @param value - The payload: the author's view * @param key - The board's storage key * @returns The view, what moves it, its day and what steps it */ export declare function useAllocationWindow(value: AllocationValue, key: string): AllocationWindow; //# sourceMappingURL=window.d.ts.map