// Divi dependencies.
import { ModuleEditProps } from '@divi/module-library';
import {
	InternalAttrs,
	type Element,
} from '@divi/types';

import type { AttrVal } from '../custom-types';

type BaseDecoration = Element.Decoration.PickedAttributes<
	| 'animation'
	| 'background'
	| 'border'
	| 'boxShadow'
	| 'disabledOn'
	| 'filters'
	| 'overflow'
	| 'position'
	| 'scroll'
	| 'sizing'
	| 'spacing'
	| 'sticky'
	| 'transform'
	| 'transition'
	| 'zIndex'
>;

export interface HiddenAttrs extends InternalAttrs {
	module?: {
		meta?: Element.Meta.Attributes;
		advanced?: {
			link?: Element.Advanced.Link.Attributes;
			htmlAttributes?: Element.Advanced.IdClasses.Attributes;
			text?: Element.Advanced.Text.Attributes;
		};
		decoration?: BaseDecoration;
	};

	content_provider?: AttrVal;
	apply_type?: AttrVal;
	argument_type?: AttrVal;
	argument_name?: AttrVal;
	argument_value?: AttrVal;
	query_id?: AttrVal;

	[key: string]: any;
}

export type HiddenEditProps = ModuleEditProps<HiddenAttrs>;
