import type { NodeDto } from "@webiny/admin-ui"; import type { FolderDto } from "../../../domain/folder/FolderDto.js"; /** * Transform an array of folders returned by folders cache into an array of elements for the tree component. * * @param folders list of folders returned by folders cache. * @param focusedNodeId id of the current folder selected/focused. * @param hiddenFolderIds list ids of the folder you don't want to show within the list. * @return array of elements to render the tree component. */ export declare const createTreeData: (folders?: FolderDto[], focusedNodeId?: string, hiddenFolderIds?: string[]) => NodeDto[]; /** * Return an array of ids of open folders, based on the current focused folder id, its parent folders and the folders * opened by user interaction. * * @param folders list of folders returned by folders cache. * @param openIds list of open folders ids. * @param focusedId id of the current folder selected/focused. * @return array of ids of open folders. */ export declare const createInitialOpenList: (folders?: FolderDto[], openIds?: string[], focusedId?: string) => string[];