import { UnwrapRef } from 'vue'; import { ComponentTypes, CarouselProps, ComponentNode, ContentGridProps, EmbeddableProps, GridItemProps, GridProps, HtmlProps, IFrameProps, MultimediaProps, SectionComponentOverrides, SectionListProps, TextProps, CanvasBuilderMode, ComponentNodeVisible, LinkProps } from '../types/canvas'; import { CanvasRetrieve, FileRetrieve } from '../../../../types/openapi'; import { EmbedLocation } from '../../../types/app'; import { SectionComponentNodesBySectionId, ComponentNodesById } from '../composables/useCanvas'; import { SelectedPage, SelectedFile } from '../../content-selector/stores/app'; import { CollectionPlayer } from '../../collection-player/types/collection-player.type'; export declare function createNodeId(type?: ComponentTypes): string; export declare function getComponentKeywords(type: ComponentTypes, t: (input: string) => string): string[]; export declare function getComponentTitle(type: ComponentTypes | string, t: (input: string) => string, options?: { name?: string; }): string; export declare function getComponentDescription(type: ComponentTypes | string, t: (input: string) => string, options?: { description?: string; }): string; export declare function getNodeDisplayNameByComponentType(node: ComponentNode | null | undefined): string; export declare function getSectionGlobalComponentSpacing(section: CanvasRetrieve['sections'][number]): string | undefined; export declare function discardSectionComponentOverride(sectionId: CanvasRetrieve['id'], componentId: ComponentNode['id'], overrides: SectionComponentOverrides): SectionComponentOverrides; export declare function addCanvasComponent(currentContent: ComponentNode[], add: { type: ComponentTypes; parentId?: ComponentNode['id'] | null; afterSiblingId?: ComponentNode['id'] | null; condition?: (node: ComponentNode[]) => boolean; withData?: ComponentNode['data'] | null; withChildren?: ComponentNode['children']; withExtraNodeData?: Partial; }): { newContent: ComponentNode[]; newComponentId: null; } | { newContent: ComponentNode[]; newComponentId: string; }; export declare function getAllPages(canvasContent: ComponentNode[], currentEmbedLocation: EmbedLocation, isEditMode?: boolean): ComponentNode[][]; export declare function getPageQuantity(canvasContent: ComponentNode[][]): number; export declare const getPageRange: (canvasContent: ComponentNode[], currentEmbedLocation: EmbedLocation, start?: number, end?: number) => ComponentNode[][]; export declare function scrollCanvasToTop(): void; export declare function shouldShowEmbeddable(isEditMode: boolean, currentEmbedLocation: EmbedLocation, headlessLocations?: string[]): boolean; export declare const isHeadlessOrNotAvailableApp: (component: ComponentNode, isEditMode: boolean, currentEmbedLocation: EmbedLocation) => boolean; export declare function shouldDisplayPlaceholderComponent(isEditMode: boolean, mode: (typeof CanvasBuilderMode)[keyof typeof CanvasBuilderMode] | undefined, visibility?: ComponentNodeVisible): boolean; export declare function isTextComponentEmpty(component: ComponentNode, overrides?: SectionComponentOverrides, sectionId?: CanvasRetrieve['id']): boolean; type FoundComponent = { sectionId?: CanvasRetrieve['id']; sectionListId?: ComponentNode['id']; componentId: ComponentNode['id']; } | null; export declare function findEmbeddableInSectionsContent(canvasPages: ComponentNode[][], sectionComponentNodesBySectionId: UnwrapRef, appName: string): FoundComponent; export declare function findAllEmbeddableTypesInCanvasContent(componentNodesById: UnwrapRef): Set; export declare function findAllEmbeddableTypesInSectionsContent(sectionComponentNodesBySectionId: UnwrapRef): Set; export declare function findEmbeddableInCanvasContent(componentNodesById: UnwrapRef, appName: string): FoundComponent; export declare function scrollToComponentById(id: ComponentNode['id'] | null | undefined, sectionId?: string, sectionIndex?: number, instant?: boolean, delay?: number): void; export declare function updateFirstContentGridWithShareboxItems(canvasContent: ComponentNode[], selectedItems: (SelectedFile | SelectedPage)[], filesById: Record): ComponentNode[]; export declare function handleThemeAssetComparison(key: string | symbol | number, objValue: any, othValue: any, object: any, other: any, fileProps: string[], isEqual: (obj1: any, obj2: any) => boolean, componentsWithThemeMeta?: Set): boolean | undefined; export declare function applyCanvasThemeAssetsToNode(node: ComponentNode): ComponentNode; export declare function processCanvasForSectionThemeOverride(canvas: CanvasRetrieve, maintainSectionTheme: boolean): CanvasRetrieve; export declare function isEmbeddableWithZeroHeight(component: ComponentNode): boolean; export {};