import type { _InternalTypes, StaticFile, TFolder } from 'remotion'; import type { CompositionSelectorItemType } from '../components/CompositionSelectorItem'; export type AssetFolder = { name: string; items: AssetStructure; expanded: boolean; }; export type AssetStructure = { files: StaticFile[]; folders: AssetFolder[]; }; export declare const buildAssetFolderStructure: (files: StaticFile[], parentFolderName: string | null, foldersExpanded: Record) => AssetStructure; export declare const splitParentIntoNameAndParent: (name: string | null) => { name: string | null; parent: string | null; }; /** * Returns storage keys for the composition folder and each ancestor, so the * tree can be expanded when navigating to a nested composition. */ export declare const getKeysToExpand: (initialFolderName: string, parentFolderName: string | null, initial?: string[]) => string[]; export declare const createFolderTree: (comps: _InternalTypes['AnyComposition'][], folders: TFolder[], foldersExpanded: Record) => CompositionSelectorItemType[]; /** * Sorts the tree returned by createFolderTree by name, on every level. * Folders stay grouped above compositions, and both groups are sorted. */ export declare const sortFolderTreeAlphabetically: (items: CompositionSelectorItemType[]) => CompositionSelectorItemType[];