import type { Dayjs } from "dayjs";
import type { TimeSeriesInterval } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase/visualizations/echarts/cartesian/model/types";
import type { ContinuousDomain } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase/visualizations/shared/types/scale";
import type { DateTimeAbsoluteUnit, RawSeries, RowValue } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase-types/api";
import type { ShowWarning } from "../../types";
export declare const tryGetDate: (rowValue: RowValue) => Dayjs | null;
export declare const msToDays: (ms: number) => number;
export declare const TIMESERIES_INTERVALS: (TimeSeriesInterval & {
    testFn: (date: Dayjs) => number;
})[];
export declare function minTimeseriesUnit(units: (DateTimeAbsoluteUnit | null)[]): DateTimeAbsoluteUnit | null;
export declare function computeTimeseriesDataInverval(xValues: RowValue[], unit: DateTimeAbsoluteUnit | null): (TimeSeriesInterval & {
    testFn: (date: Dayjs) => number;
}) | undefined;
export declare function getTimeSeriesIntervalDuration(interval: TimeSeriesInterval): number;
export declare function computeTimeseriesTicksInterval(xDomain: ContinuousDomain, xInterval: TimeSeriesInterval, chartWidth: number, tickFormat: (value: RowValue) => string): TimeSeriesInterval & {
    testFn: (date: Dayjs) => number;
};
export declare function getLargestInterval(intervals: TimeSeriesInterval[]): TimeSeriesInterval;
export declare const DEFAULT_TIMEZONE = "Etc/UTC";
export declare function getTimezoneOrOffset(series: RawSeries, showWarning?: ShowWarning): {
    timezone?: string;
    offsetMinutes?: number;
};
