import { z } from "zod";
import { zLocale } from "../../i18n/index.js";
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEcdfRegressionLine, zEncoding, zKdeRegressionLine, zLabel, zLegend, zMeasures, zPage, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
const zHistogram = z.object({
    chartType: z.literal('histogram'),
    dataset: zDataset.nullish(),
    encoding: zEncoding.nullish(),
    dimensions: zDimensions.nullish(),
    measures: zMeasures.nullish(),
    page: zPage.nullish(),
    backgroundColor: zBackgroundColor.nullish(),
    color: zColor.nullish(),
    label: zLabel.nullish(),
    legend: zLegend.nullish(),
    tooltip: zTooltip.nullish(),
    brush: zBrush.nullish(),
    xAxis: zXLinearAxis.nullish(),
    yAxis: zYLinearAxis.nullish(),
    crosshairRect: zCrosshairRect.nullish(),
    binCount: z.number().positive().nullish(),
    binStep: z.number().positive().nullish(),
    binValueType: z.literal('count').or(z.literal('percentage')).nullish(),
    theme: zTheme.nullish(),
    barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),
    annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
    annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
    annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
    annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
    ecdfRegressionLine: z.array(zEcdfRegressionLine).or(zEcdfRegressionLine).nullish(),
    kdeRegressionLine: z.array(zKdeRegressionLine).or(zKdeRegressionLine).nullish(),
    dimensionLinkage: zDimensionLinkage.nullish(),
    locale: zLocale.nullish()
});
export { zHistogram };

//# sourceMappingURL=zHistogram.js.map