/** * General type definitions that don't fit into a more specialized category. * Or, at least, haven't found a more specific home yet. */ export declare type NumberOrDate = number | string; export declare type ErrorManagement = { errors: Array; addError: (error: Error) => void; removeError: (error: Error) => void; clearAllErrors: () => void; }; export declare type NumberRange = { min: number; max: number; }; export declare type DateRange = { min: string; max: string; }; export declare type TimeDeltaRange = { min: number; max: number; unit: string; }; export declare type TimeUnit = string; export declare type TimeDelta = { value: number; unit: string; }; export declare type NumberOrTimeDelta = number | TimeDelta; export declare type NumberOrDateRange = NumberRange | DateRange; export declare type NumberOrTimeDeltaRange = NumberRange | TimeDeltaRange; export declare type sampleSize = number; export declare type proportionSampleSize = { numerator: number; denominator: number; }; export declare type Bin = { /** The starting value of the bin. */ binStart: number | string; /** The ending value of the bin. */ binEnd: number | string; /** A label for the bin. */ binLabel: string; /** The value to be mapped to a visual element in a plot. * Could represent a count, proportion, mean, etc. */ value: number; /** The number of samples contributing to the calculation of 'value'. */ sampleSize?: sampleSize | proportionSampleSize; }; export declare type BinWidthSlider = { /** Is the continous variable that was binned numeric or date (date-time actually). * The implementation will assume 'number' if not provided. * This is mainly needed if providing year-only dates, because Plotly can't guess correctly for them. */ valueType: 'number' | 'date'; /** Current binWidth. */ binWidth: NumberOrTimeDelta; /** The acceptable range of binWidth values. */ binWidthRange: NumberOrTimeDeltaRange; /** The amount that binWidth should be adjusted each time the * user drags the slider to the left or right. */ binWidthStep: number; }; //# sourceMappingURL=general.d.ts.map