import type { DateTime } from '@gravity-ui/date-utils'; import type { InputBase, Validation, ValueBase } from "../../types/index.js"; export interface RelativeDateFieldState { /** The current field value. */ value: string | null; /** Sets the field value */ setValue: (v: string | null) => void; /** Current user input */ text: string; /** Sets text */ setText: (t: string) => void; /** */ parsedDate: DateTime | null; /** */ lastCorrectDate: DateTime | null; /** */ validationState?: 'invalid'; /** * Whether the field is disabled. */ disabled?: boolean; /** * Whether the value is immutable. */ readOnly?: boolean; } export interface RelativeDateFieldOptions extends ValueBase, InputBase, Validation { timeZone?: string; /** Round up parsed date to the nearest granularity. */ roundUp?: boolean; } export declare function useRelativeDateFieldState(props: RelativeDateFieldOptions): RelativeDateFieldState;