import { type BlockInstance } from '@wordpress/blocks'; import { type Module, type ModuleLibrary } from '@divi/types'; /** * Interface for module instance. * * This interface extending BlockInstance interface to have the proper innerBlocks property * type declaration when doing serialization. * * @since ?? */ export interface ModuleInstance extends BlockInstance { innerBlocks: ModuleLibrary.Module.Component.Instance[]; } /** * Component props of module that is rendered on visual builder' app. * * @since ?? */ export type ModuleEditProps< TAttrs, TParentAttrs = unknown, TChildAttrs = unknown, > = ModuleLibrary.Module.Component.EditProps; export type GetAttrValueParams = Pick< Module.Settings.Group.VisibleCallback.Params, 'attrs' | 'breakpoint' | 'baseBreakpoint' | 'breakpointNames' | 'state' >;