import { ReactNode } from '../../../../node_modules/@types/react';
declare const DATE_PRESETS: readonly [{
    readonly label: "Last 24 hours";
    readonly value: "24h";
}, {
    readonly label: "Last 3 days";
    readonly value: "3d";
}, {
    readonly label: "Last 7 days";
    readonly value: "7d";
}, {
    readonly label: "Last 14 days";
    readonly value: "14d";
}, {
    readonly label: "Last 30 days";
    readonly value: "30d";
}];
export type DatePreset = (typeof DATE_PRESETS)[number]['value'] | 'custom';
export { DATE_PRESETS };
export declare function isValidPreset(value: string | null | undefined): value is DatePreset;
export type DateRange = {
    from?: Date;
    to?: Date;
};
export declare const MetricsContext: import('../../../../node_modules/@types/react').Context<{
    datePreset: DatePreset;
    setDatePreset: (v: DatePreset) => void;
    customRange: DateRange | undefined;
    setCustomRange: (v: DateRange | undefined) => void;
    dateRangeLabel: string;
}>;
export declare function useMetrics(): {
    datePreset: DatePreset;
    setDatePreset: (v: DatePreset) => void;
    customRange: DateRange | undefined;
    setCustomRange: (v: DateRange | undefined) => void;
    dateRangeLabel: string;
};
export declare function MetricsProvider({ children, initialPreset, onPresetChange, }: {
    children: ReactNode;
    initialPreset?: DatePreset;
    onPresetChange?: (preset: DatePreset) => void;
}): import("react/jsx-runtime").JSX.Element;
