export type { DateTimeValue } from './createDateTimePicker.svelte'; import { type SvEditorProps } from './editor-contract'; import { type DateTimeValue, type DropDownDisplayMode } from './createDateTimePicker.svelte'; import type { DateLike } from './datetime/date-core'; /** User-facing strings (localizable via `messages`). */ type DateTimeMessages = { dialog: string; date: string; time: string; clear: string; open: string; }; type Props = SvEditorProps & { value?: DateTimeValue; onChange?: (value: Date | null) => void; /** Fired when the value is finalized (Enter, blur, or a single-date pick). * Used by the grid to save the cell. */ onCommit?: (value: Date | null) => void; /** Fired on Escape / dismiss without committing (grid cancels the edit). */ onCancel?: () => void; /** Display / parse mask (token engine). */ formatString?: string; min?: DateLike | null; max?: DateLike | null; nullable?: boolean; placeholder?: string; locale?: string; firstDayOfWeek?: number; weekNumbers?: boolean; hourFormat?: '12-hour' | '24-hour'; minuteInterval?: number; /** Which tabs the dropdown shows. */ dropDownDisplayMode?: DropDownDisplayMode; /** Up/down spinner buttons that bump the value by `stepMinutes`. */ spinButtons?: boolean; stepMinutes?: number; /** Open the dropdown as soon as the field is focused (grid in-cell editing). */ autoOpen?: boolean; /** Stretch the field to fill its container (100% width) instead of the fixed * default width - used when mounted as a grid cell editor. */ block?: boolean; /** Animate the calendar's month/drill navigation (honors reduced-motion). */ animate?: boolean | 'slide' | 'fade'; /** Override the built-in strings (tabs, dialog, clear/open aria-labels). */ messages?: Partial; }; declare const SvDateTimePicker: import("svelte").Component; type SvDateTimePicker = ReturnType; export default SvDateTimePicker;