import { Model } from '@adobe/aem-spa-page-model-manager'; /** * Component that is allowed to be used on the page by the editor. */ export type AllowedComponent = { path: string; title: string; }; export type AllowedComponentList = { /** * Should AllowedComponents list be applied. */ applicable: boolean; components: AllowedComponent[]; }; export interface PageModel extends Model { ':type': string; id: string; ':path': string; ':children'?: { [key: string]: PageModel; }; } export type ModelProps = { cqPath?: string; cqItems?: { [key: string]: Model; }; cqItemsOrder?: string[]; cqType?: string; cqChildren?: { [key: string]: PageModel; }; appliedCssClassNames?: string; }; export type ResponsiveGridProps = { gridClassNames: string; columnClassNames: { [key: string]: string; }; allowedComponents: AllowedComponentList; columnCount?: string; } & ModelProps;