/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type ReactNode } from "react"; import { type TimeResolution } from "./scale.js"; type Period = TimeResolution; /** Internal controlled time navigation. The host retains its Slice, records and view unit. */ export interface TimeNavigatorProps { date: number; period: Period; sunday: boolean; onChange: (date: number) => void; now?: Date; compact?: boolean; /** A truthful visible/custom range may replace the anchor's label. */ rangeLabel?: string | undefined; /** * The window's last instant, where it spans several periods — the Plan's window of buckets (#1680's review): the * short label names the periods from `date`'s to this one's, as `rangeLabel` names the range. Left out, the window * is the one period `date` is in. */ end?: number | undefined; label?: string; scope: string; /** Weekly records open on their weeks, even while the main shows one day. */ initialPanel?: "day" | "week"; /** Read just the open month's week statuses. Closing/unmounting releases them. */ onWeeks?: (dates: readonly Date[]) => void; weekMarker?: (date: Date) => ReactNode; /** A mark in each day of the day panel — a day record's status (Published · Draft · Not started), read for the open month through `onWeeks`. */ dayMarker?: (date: Date) => ReactNode; legend?: ReactNode; /** Final toolbar fold: view controls share the same reachable popover. */ controls?: ReactNode; /** The host's existing Slice editor; no second range state lives here. */ rangeEditor?: ReactNode; /** Told when Today is pressed, after its date is chosen: a host that shows the time of day brings the now line into view (#1398). */ onToday?: (() => void) | undefined; } /** * Install (or clear) the navigator styles probe. Test use only. * * @param fn - Called with the styles a navigator draws with, each time it renders; `undefined` clears it */ export declare function setNavigatorStylesProbe(fn: ((styles: object) => void) | undefined): void; /** One date/range trigger between arrows, with the same Today action in every popup. */ export declare function TimeNavigator({ date, period, sunday, onChange, now: givenNow, compact, rangeLabel, end, label, scope, initialPanel, onWeeks, weekMarker, dayMarker, legend, controls, rangeEditor, onToday }: TimeNavigatorProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=navigation.d.ts.map