import type { DirFlattenedTreeNode } from '@vunk/shared/node/fs'; import type { Plugin } from 'vite'; export interface ExplorerTreeNode extends DirFlattenedTreeNode { /** * file basename */ label: string; } export interface ExplorerTreeSettings { root?: string; ignore?: string[]; } /** * 获取文件目录树 * @param settings * @param settings.root - root directory * @param settings.ignore - ignore files * @returns * * @example * ```ts import explorerTreeList from 'virtual:explorer/packages' console.log(explorerTreeList) * ``` */ export declare function explorerTree(settings?: ExplorerTreeSettings): Plugin;