import { TemporalTimezone, TemporalSupportedObject } from "../../base-ui-copy/types/index.js"; import { SchedulerProcessedEvent, WeekStartsOn } from "../../models/index.js"; import { Adapter } from "../../use-adapter/useAdapter.types.js"; /** * Builds an adapter-agnostic format string that produces an ISO 8601 date-time * **without** the trailing `Z` (wall-time representation). * Produces e.g. `yyyy'-'MM'-'dd'T'HH':'mm':'ss` for date-fns. */ export declare function getWallTimeIsoFormat(adapter: Adapter): string; /** * Converts a `TemporalSupportedObject` back to a string, respecting the * original date format: instant strings (ending with `Z`) stay as UTC ISO * strings, while wall-time strings (no `Z`) are formatted in the event's * data timezone without the `Z` suffix. */ export declare function dateToEventString(adapter: Adapter, date: TemporalSupportedObject, originalString: string, dataTimezone: TemporalTimezone): string; export declare function mergeDateAndTime(adapter: Adapter, dateParam: TemporalSupportedObject, timeParam: TemporalSupportedObject): TemporalSupportedObject; /** * Snaps an all-day event's bounds to span the whole day; non-all-day bounds are returned unchanged. */ export declare function normalizeAllDayBounds(adapter: Adapter, start: TemporalSupportedObject, end: TemporalSupportedObject, allDay: boolean | undefined): { start: TemporalSupportedObject; end: TemporalSupportedObject; }; /** * Returns a string representation of the date. * It can be used as key in Maps or passed to the React `key` property when looping through days. * It only contains date information, two dates representing the same day but with different time will have the same key. */ export declare function getDateKey(day: TemporalSupportedObject, adapter: Adapter): string; /** * Gets the end date of an event occurrence based on its start date. * For now, the occurrence always has the same duration as the original event, even when the DST applies between its start and the end. */ export declare function getOccurrenceEnd({ event, occurrenceStart, adapter }: { event: SchedulerProcessedEvent; occurrenceStart: TemporalSupportedObject; adapter: Adapter; }): TemporalSupportedObject; /** * Returns the start of the week for `date`, using `weekStartsOn` as the first * day of the week (0 = Sunday … 6 = Saturday). * * When `weekStartsOn` is `undefined` the locale default (adapter.startOfWeek) * is used unchanged. */ export declare function getStartOfWeek(adapter: Adapter, date: TemporalSupportedObject, weekStartsOn: WeekStartsOn | undefined): TemporalSupportedObject; /** * Returns the end of the week for `date` (inclusive last moment of the 7th day), * using `weekStartsOn` as the first day of the week. * * When `weekStartsOn` is `undefined` the locale default (adapter.endOfWeek) is used. */ export declare function getEndOfWeek(adapter: Adapter, date: TemporalSupportedObject, weekStartsOn: WeekStartsOn | undefined): TemporalSupportedObject; /** * Returns the week number for `date`, using `weekStartsOn` as the first day of * the week (0 = Sunday … 6 = Saturday). * * Applies the ISO 8601 "4-day minimum" rule (the Thursday of each week * determines its year) with a parametric first day of the week. When * `weekStartsOn` is 1 the result is a standard ISO 8601 week number; for * other values it is the same algorithm with a shifted origin. */ export declare function getWeekNumber(adapter: Adapter, date: TemporalSupportedObject, weekStartsOn: WeekStartsOn | undefined): number;