import React from 'react'; import { ButtonVariant } from '../../components/button/Button'; import { InputContainer } from '../../components/forms/input-container/InputContainer'; import { UtcIsoString } from '../datetime-picker/dateTimeHelpers'; type InputContainerProps = React.ComponentProps; export type IntervalOption = { label: string; /** How many minutes back from baseDate (default: now). */ minutesAgo: number; }; export type IntervalSelectValue = number | null; export type IntervalSelectProps = Omit & { id?: string; options: IntervalOption[]; selectedValue: IntervalSelectValue; /** * Emits a UTC instant as ISO string (Z), consistent with DateTimePicker when enableTime=true. * Also includes the computed local Date for convenience. */ onChange: (isoUtc: UtcIsoString, meta: { minutesAgo: number; option: IntervalOption; dateLocal: Date; }) => void; /** Base date for the calculation; defaults to "now". */ baseDate?: Date; placeholder?: string; size?: 'sm' | 'md' | 'lg'; variant?: ButtonVariant; onClear?: () => void; dataCy?: string; disabled?: boolean; tooltip?: React.ReactNode; tooltipPlacement?: 'top' | 'right' | 'bottom' | 'left'; }; export declare function IntervalSelect({ label, error, helpText, orientation, labelWidth, fullWidth, required, tooltip, tooltipPlacement, id, options, selectedValue, onChange, baseDate, placeholder, size, variant, onClear, dataCy, disabled, }: IntervalSelectProps): React.ReactNode; export {};