/// <reference types="../index.d.ts" />
import type { ArcgisCkeditor5 } from "../components/arcgis-ckeditor5/customElement.js";
import type { ArcgisCkeditor5Popover } from "../components/arcgis-ckeditor5-popover/customElement.js";
import type { ArcgisColorInput } from "../components/arcgis-color-input/customElement.js";
import type { ArcgisFieldInfo } from "../components/arcgis-field-info/customElement.js";
import type { ArcgisFieldPickList } from "../components/arcgis-field-pick-list/customElement.js";
import type { ArcgisHistogram } from "../components/arcgis-histogram/customElement.js";
import type { ArcgisLabelInput } from "../components/arcgis-label-input/customElement.js";
import type { ArcgisPickerInput } from "../components/arcgis-picker-input/customElement.js";
import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElement.js";
import type { ArcgisRampColorBreak } from "../components/arcgis-ramp-color-break/customElement.js";
import type { ArcgisRampOpacity } from "../components/arcgis-ramp-opacity/customElement.js";
import type { ArcgisSlider } from "../components/arcgis-slider/customElement.js";
import type { ArcgisSliderInput } from "../components/arcgis-slider-input/customElement.js";
import type { ArcgisSpatialReferencePicker } from "../components/arcgis-spatial-reference-picker/customElement.js";
import type { ArcgisSpatialReferencePickerTree } from "../components/arcgis-spatial-reference-picker-tree/customElement.js";
import type { ArcgisTicks } from "../components/arcgis-ticks/customElement.js";
import type { ArcgisUniqueValuesList } from "../components/arcgis-unique-values-list/customElement.js";
import { JSXBase as StencilJsx } from "@stencil/core/internal";
import type { EventHandler } from "@arcgis/lumina";

interface StencilArcgisCkeditor5 extends Partial<Pick<ArcgisCkeditor5, "canResizeVertically" | "currentLanguage" | "customConfig" | "customExpressionCheck" | "editorType" | "groupFieldsAndExpressions" | "intlExpressionsGroupHeading" | "intlFieldsGroupHeading" | "intlTextPlaceHolder" | "mentionFields" | "readOnly" | "textData">>, StencilJsx.HTMLAttributes<ArcgisCkeditor5> {
  onArcgisCkeditor5Created?: EventHandler<ArcgisCkeditor5["arcgisCkeditor5Created"]>;
  onArcgisCkeditor5DataUpdated?: EventHandler<ArcgisCkeditor5["arcgisCkeditor5DataUpdated"]>;
  onArcgisCkeditor5SourceEditingChanged?: EventHandler<ArcgisCkeditor5["arcgisCkeditor5SourceEditingChanged"]>;
  onArcgisCreated?: EventHandler<ArcgisCkeditor5["arcgisCreated"]>;
  onArcgisDataUpdated?: EventHandler<ArcgisCkeditor5["arcgisDataUpdated"]>;
  onArcgisSourceEditingChanged?: EventHandler<ArcgisCkeditor5["arcgisSourceEditingChanged"]>;
}

interface StencilArcgisCkeditor5Popover extends Partial<Pick<ArcgisCkeditor5Popover, "guid" | "intlCancel" | "intlLabel" | "intlOk" | "refElement">>, StencilJsx.HTMLAttributes<ArcgisCkeditor5Popover> {
  onArcgisCkeditor5PopoverClosed?: EventHandler<ArcgisCkeditor5Popover["arcgisCkeditor5PopoverClosed"]>;
  onArcgisPopoverClosed?: EventHandler<ArcgisCkeditor5Popover["arcgisPopoverClosed"]>;
}

interface StencilArcgisColorInput extends Partial<Pick<ArcgisColorInput, "clearable" | "color" | "compact" | "disabled" | "hideRecentColors" | "messageOverrides" | "placement" | "popoverProps" | "showTransparency" | "storageId">>, StencilJsx.HTMLAttributes<ArcgisColorInput> {
  onArcgisChange?: EventHandler<ArcgisColorInput["arcgisChange"]>;
  onArcgisColorInputChange?: EventHandler<ArcgisColorInput["arcgisColorInputChange"]>;
  onArcgisColorInputPopoverClose?: EventHandler<ArcgisColorInput["arcgisColorInputPopoverClose"]>;
  onArcgisColorInputPopoverOpen?: EventHandler<ArcgisColorInput["arcgisColorInputPopoverOpen"]>;
  onArcgisColorInputSwatchUpdate?: EventHandler<ArcgisColorInput["arcgisColorInputSwatchUpdate"]>;
  onArcgisPickerClose?: EventHandler<ArcgisColorInput["arcgisPickerClose"]>;
  onArcgisPickerOpen?: EventHandler<ArcgisColorInput["arcgisPickerOpen"]>;
  onArcgisSwatchUpdate?: EventHandler<ArcgisColorInput["arcgisSwatchUpdate"]>;
}

interface StencilArcgisFieldInfo extends Partial<Pick<ArcgisFieldInfo, "fieldName" | "hideAlias" | "hideNumericFormat" | "hideStatistics" | "layer" | "view">>, StencilJsx.HTMLAttributes<ArcgisFieldInfo> {
  onArcgisComplete?: EventHandler<ArcgisFieldInfo["arcgisComplete"]>;
  onArcgisFieldInfoComplete?: EventHandler<ArcgisFieldInfo["arcgisFieldInfoComplete"]>;
}

interface StencilArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "customExpressionCheck" | "expressionsGroupHeading" | "fields" | "fieldsGroupHeading" | "filterNoResultsText" | "filterPlaceholderText" | "groupFieldsAndExpressions" | "heading" | "hideCancel" | "hideSort" | "layer" | "listOnly" | "mapView" | "multiple" | "okBtnText" | "popoverProps" | "selectedFields" | "showCancel" | "showDescription" | "showFieldInfo" | "showFieldName" | "showFieldTypeIcon" | "showFilterLength" | "showSelectionAll" | "showSort" | "sortBy" | "view">>, StencilJsx.HTMLAttributes<ArcgisFieldPickList> {
  onArcgisChange?: EventHandler<ArcgisFieldPickList["arcgisChange"]>;
  onArcgisClose?: EventHandler<ArcgisFieldPickList["arcgisClose"]>;
  onArcgisDeleteField?: EventHandler<ArcgisFieldPickList["arcgisDeleteField"]>;
  onArcgisEditField?: EventHandler<ArcgisFieldPickList["arcgisEditField"]>;
  onArcgisFieldPickListChange?: EventHandler<ArcgisFieldPickList["arcgisFieldPickListChange"]>;
  onArcgisFieldPickListDismissed?: EventHandler<ArcgisFieldPickList["arcgisFieldPickListDismissed"]>;
  onArcgisFieldPickListSortByChange?: EventHandler<ArcgisFieldPickList["arcgisFieldPickListSortByChange"]>;
  onArcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
}

interface StencilArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation">>, StencilJsx.HTMLAttributes<ArcgisHistogram> {
}

interface StencilArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, StencilJsx.HTMLAttributes<ArcgisLabelInput> {
  onArcgisChange?: EventHandler<ArcgisLabelInput["arcgisChange"]>;
}

interface StencilArcgisPickerInput extends Partial<Pick<ArcgisPickerInput, "disabled" | "heading" | "iconEnd" | "intlDone" | "label" | "popoverProps">>, StencilJsx.HTMLAttributes<ArcgisPickerInput> {
  onArcgisPopoverClose?: EventHandler<ArcgisPickerInput["arcgisPopoverClose"]>;
  onArcgisPopoverOpen?: EventHandler<ArcgisPickerInput["arcgisPopoverOpen"]>;
}

interface StencilArcgisRampColor extends Partial<Pick<ArcgisRampColor, "layout" | "max" | "min" | "stops">>, StencilJsx.HTMLAttributes<ArcgisRampColor> {
}

interface StencilArcgisRampColorBreak extends Partial<Pick<ArcgisRampColorBreak, "layout" | "max" | "min" | "stops">>, StencilJsx.HTMLAttributes<ArcgisRampColorBreak> {
}

interface StencilArcgisRampOpacity extends Partial<Pick<ArcgisRampOpacity, "fillColor" | "layout" | "max" | "min" | "stops">>, StencilJsx.HTMLAttributes<ArcgisRampOpacity> {
}

interface StencilArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOverlap" | "autoDestroyDisabled" | "disabled" | "fillPlacement" | "fullRangeMax" | "fullRangeMin" | "keyboardLargeStep" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "popoverPlacement" | "precision" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "segmentsDraggingDisabled" | "showRangeLabels" | "steps" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, StencilJsx.HTMLAttributes<ArcgisSlider> {
  onArcgisActiveValueChange?: EventHandler<ArcgisSlider["arcgisActiveValueChange"]>;
  onArcgisChange?: EventHandler<ArcgisSlider["arcgisChange"]>;
  onArcgisInput?: EventHandler<ArcgisSlider["arcgisInput"]>;
  onArcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
}

interface StencilArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "step" | "unitsLabel" | "value" | "withSteppers">>, StencilJsx.HTMLAttributes<ArcgisSliderInput> {
  onArcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
  onArcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
}

interface StencilArcgisSpatialReferencePicker extends Partial<Pick<ArcgisSpatialReferencePicker, "autoFilterToDefault" | "defaultWkid" | "filterEnabled" | "hideCategories" | "value">>, StencilJsx.HTMLAttributes<ArcgisSpatialReferencePicker> {
  onArcgisChange?: EventHandler<ArcgisSpatialReferencePicker["arcgisChange"]>;
}

interface StencilArcgisSpatialReferencePickerTree extends Partial<Pick<ArcgisSpatialReferencePickerTree, "data" | "value">>, StencilJsx.HTMLAttributes<ArcgisSpatialReferencePickerTree> {
  onArcgisChange?: EventHandler<ArcgisSpatialReferencePickerTree["arcgisChange"]>;
}

interface StencilArcgisTicks extends Partial<Pick<ArcgisTicks, "interactive" | "interpolationExponent" | "labelFormatter" | "labelPlacement" | "layout" | "max" | "min" | "mirrored" | "mode" | "showBaseline" | "showLabels" | "values">>, StencilJsx.HTMLAttributes<ArcgisTicks> {
  onArcgisTickClick?: EventHandler<ArcgisTicks["arcgisTickClick"]>;
}

interface StencilArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, StencilJsx.HTMLAttributes<ArcgisUniqueValuesList> {
  onArcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
  onArcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
  onArcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
}

interface ExposedElements {
  "arcgis-ckeditor5": StencilArcgisCkeditor5;
  "arcgis-ckeditor5-popover": StencilArcgisCkeditor5Popover;
  "arcgis-color-input": StencilArcgisColorInput;
  "arcgis-field-info": StencilArcgisFieldInfo;
  "arcgis-field-pick-list": StencilArcgisFieldPickList;
  "arcgis-histogram": StencilArcgisHistogram;
  "arcgis-label-input": StencilArcgisLabelInput;
  "arcgis-picker-input": StencilArcgisPickerInput;
  "arcgis-ramp-color": StencilArcgisRampColor;
  "arcgis-ramp-color-break": StencilArcgisRampColorBreak;
  "arcgis-ramp-opacity": StencilArcgisRampOpacity;
  "arcgis-slider": StencilArcgisSlider;
  "arcgis-slider-input": StencilArcgisSliderInput;
  "arcgis-spatial-reference-picker": StencilArcgisSpatialReferencePicker;
  "arcgis-spatial-reference-picker-tree": StencilArcgisSpatialReferencePickerTree;
  "arcgis-ticks": StencilArcgisTicks;
  "arcgis-unique-values-list": StencilArcgisUniqueValuesList;
}

export namespace JSX {
  export interface IntrinsicElements extends ExposedElements {}
}

declare module "@stencil/core/internal/stencil-public-runtime" {
  export namespace h.JSX {
    interface IntrinsicElements extends ExposedElements {}
  }
}