import { SelectHistogramProps, SelectHistogramSliderProps } from "@lifesg/react-design-system/select-histogram"; import { IYupValidationRule, TComponentOmitProps } from "../../frontend-engine"; import { IBaseFieldSchema } from "../types"; export interface ISelectHistogramValidationRule extends IYupValidationRule { /** to customise error message if the values match bins and interval */ bin?: boolean | undefined; /** to customise error message if the values are not incremental */ incremental?: boolean | undefined; /** to customise error message if the values out of range */ withinRange?: boolean | undefined; } type TCustomOptions = Pick; export interface ISelectHistogramSchema extends IBaseFieldSchema<"select-histogram", V, ISelectHistogramValidationRule>, TComponentOmitProps> { customOptions?: TCustomOptions | undefined; histogramSlider: Pick; } export {};