import { DateValue } from 'react-aria-components'; import { UnavailableDateRange } from './DatePicker.types'; /** Reads a string prop, defaulting an unset/non-string value to empty. */ export declare const readString: (prop: string | undefined) => string; /** Reads a boolean prop, defaulting an unset/non-boolean value to `fallback`. */ export declare const readBool: (prop: boolean | undefined, fallback: boolean) => boolean; /** * Parses an ISO string into a React Aria `DateValue`, or `null` if invalid/empty. * The result's type must match the picker's granularity: * - `withTime` false → a date-only `CalendarDate` (any time part is dropped). * - `withTime` true → a `CalendarDateTime` (a date-only input is widened to * midnight) so the hour/minute segments have a value to edit. */ export declare const toDateValue: (iso: string, withTime: boolean) => DateValue | null; /** * `DateValue` → ISO string (`YYYY-MM-DD`, or `YYYY-MM-DDTHH:MM` with time); empty * for null. Granularity maxes at minute, so seconds (always `:00`) are trimmed. */ export declare const toIso: (date: DateValue | null) => string; /** * Builds an `isDateUnavailable` predicate from a list of `{ from, to }` ISO ranges * (inclusive; a single blocked day has `from === to`, and one endpoint alone is * treated as that single day). Returns `undefined` when nothing parses, so the * picker leaves every date open. Unparseable/empty items are skipped. */ export declare const buildIsDateUnavailable: (unavailableDates: ReadonlyArray | undefined) => ((date: DateValue) => boolean) | undefined;