import { inject, provide } from 'vue';
export const panelPickerContextProps = () => ({
  prefixCls: String,
  allowClear: Boolean,
  disabled: Boolean,
  disabledAlpha: Boolean,
  mode: String,
  onModeChange: Function,
  modeOptions: Array,
  value: Object,
  onChange: Function,
  onChangeComplete: Function,
  format: String,
  onFormatChange: Function,
  activeIndex: Number,
  onActive: Function,
  gradientDragging: Boolean,
  onGradientDragging: Function,
  onClear: Function,
  disabledFormat: Boolean
});
export const panelPresetsContextProps = () => ({
  prefixCls: String,
  presets: Array,
  disabled: Boolean,
  value: Object,
  onChange: Function
});
export const PanelPickerContextKey = Symbol('panelPickerContextKey');
export function useProvidePanelPicker(state) {
  provide(PanelPickerContextKey, state);
}
export function useInjectPanelPicker() {
  return inject(PanelPickerContextKey);
}
export const PanelPresetsContextKey = Symbol('panelPresetsContextKey');
export function useProvidePanelPresets(state) {
  provide(PanelPresetsContextKey, state);
}
export function useInjectPanelPresets() {
  return inject(PanelPresetsContextKey);
}