import { TemporalInterval, DataTableIntervalEditorMode, PredefinedIntervalOption, TimeUnit } from './DataTableIntervalEditor'; import { PropertyType } from '@haulmont/jmix-react-core'; /** * Creates a {@link TemporalInterval} based on input in form of "last|next number of time units including|excluding current". * For example, "last 5 days including current day". * * @param mode 'last' or 'next', will throw an error if a different value is encountered * @param numberOfUnits * @param timeUnit see {@link TimeUnit} * @param includeCurrent * @param propertyType */ export declare function determineLastNextXInterval(mode: DataTableIntervalEditorMode, numberOfUnits: number, timeUnit: TimeUnit, includeCurrent: boolean, propertyType: PropertyType): TemporalInterval; /** * Creates a {@link TemporalInterval} that corresponds to a given {@link PredefinedIntervalOption} * * @param option see {@link PredefinedIntervalOption} * @param propertyType */ export declare function determinePredefinedInterval(option: PredefinedIntervalOption, propertyType: PropertyType): TemporalInterval;