import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
import { FilterState } from './Filter.js';
import { DateRangeOperation } from './date_utils.js';
import { FilterType } from './filters.js';

declare enum DatePreset {
    LastHour = "Last hour",
    Last12Hours = "Last 12 hours",
    Today = "Today",
    Last7Days = "Last 7 days",
    Last14Days = "Last 14 days",
    Last30Days = "Last 30 days",
    Custom = "Custom"
}
interface DateFilterState extends FilterState {
    type: FilterType.DATE;
    start: Date | null;
    end: Date | null;
    preset?: DatePreset | undefined;
    customRangeOperation?: DateRangeOperation | undefined;
}
declare const isDateFilterState: (state: FilterState) => state is DateFilterState;
declare const getDefaultDateFilterState: () => {
    type: FilterType;
    start: null;
    end: null;
    isApplied: boolean;
};
declare const DateFilter: ({ updateFilterState, state, isDateOnly, presets, }: {
    updateFilterState: (state: DateFilterState) => void;
    state: DateFilterState;
    isDateOnly?: boolean;
    presets?: DatePreset[];
}) => _emotion_react_jsx_runtime.JSX.Element;

export { DateFilter, type DateFilterState, DatePreset, getDefaultDateFilterState, isDateFilterState };
