/*! * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { MynahIcons, MynahIconsType } from '../main'; import { FileNodeAction, Status, TreeNodeDetails } from '../static'; export type TreeNode = FolderNode | FileNode; export interface FileNode { name: string; type: 'file'; filePath: string; originalFilePath: string; deleted: boolean; actions?: FileNodeAction[]; details?: TreeNodeDetails; } export interface FolderNode { name: string; type: 'folder'; details?: TreeNodeDetails; children: Array; } export declare const fileListToTree: (modifiedFilePaths: string[], deletedFilePaths?: string[], actions?: Record, details?: Record, rootTitle?: string, rootStatusIcon?: MynahIcons | MynahIconsType, rootStatusIconForegroundStatus?: Status, rootLabel?: string) => TreeNode;