import { SelectedFile, SelectedPage } from '../../content-selector/stores/app'; import { Selection } from '../../../types/selections'; import { FileRetrieve } from '../../../../types/openapi'; import { ContentGridProps } from '../../canvas-builder/types/canvas'; import { CollectionFile, CollectionPage, CollectionGroup, CollectionPlayerV2, CollectionSlideV2 } from '../../collection-player/types/collection-player.type'; import { I18nTranslate } from '../../../types/common'; export declare function parsePptxFileToCollectionPlayer(t: I18nTranslate, _file: FileRetrieve): { name: string; groups: { name: string; slides: CollectionPage[]; id: string; }[]; }; export declare function parsePdfFileToCollectionPlayer(t: I18nTranslate, file: FileRetrieve): { name: string; groups: { name: string; slides: CollectionPage[]; id: string; }[]; }; export declare function parseFileToCollectionPlayer(t: I18nTranslate, file: FileRetrieve): { name: string; groups: { name: string; slides: CollectionPage[]; id: string; }[]; } | { name: string; groups: { name: string; slides: CollectionFile[]; id: string; }[]; }; export declare function parseContentSelectorToCollectionPlayerSlides({ selectedItems, filesById, }: { selectedItems: (SelectedFile | SelectedPage)[]; filesById: Record; }): (CollectionPage | CollectionFile)[]; export declare function parseCollectionPlayerSlidesToContentSelector(slides?: CollectionGroup['slides'] | CollectionSlideV2[]): Selection[]; /** * Transform an array of file data into CollectionPlayerV2 format * Returns minimal data structure with only file_id references * Each file gets its own group to maintain proper structure for PPTX sections * @param t - Translation function * @param filesData - Array of file data with id, name, and optional selectedPages * @param name - Name for the collection (defaults to 'Collection') * @returns Transformed CollectionPlayerV2 data with file_id references */ export declare function transformFilesToCollectionPlayer(t: I18nTranslate, filesData: any[], name?: string): CollectionPlayerV2; /** * Transform an array of file data into ContentGrid format * Handles the new data structure with file references and selectedPages arrays * @param filesData - Array of file data with id, name, and optional selectedPages * @returns Transformed ContentGridProps data */ export declare function transformFilesToContentGrid(filesData: any[]): ContentGridProps;