import { ReactElement } from 'react'; import { TextProps } from './Text'; import { Control } from './types'; /** Props for {@link Date}. The value is UTC nanoseconds since the Unix epoch. */ export interface DateProps extends Omit, Control { showDragHandle?: boolean; } export interface UseDateProps extends Pick { } export interface UseDateReturn { value: string; onChange: (value: string | number) => void; } /** * Backs a date field. It shows and accepts local time while the controlled value stays * UTC nanoseconds, and snaps the value to local midnight. */ export declare const useDate: ({ value, onChange }: UseDateProps) => UseDateReturn; /** * A date field over UTC nanoseconds. It shows local time and a drag handle that scrubs * by the hour horizontally and by the day vertically. */ export declare const Date: ({ ref, onChange, value, className, showDragHandle, children, preview, ...rest }: DateProps) => ReactElement; //# sourceMappingURL=Date.d.ts.map