import type { Stats } from "node:fs"; import { type ParsedPath } from "node:path"; export interface GetFilesOptions { /** * 目录 */ dir?: string; /** * 匹配 */ match: (path: ParsedPath, stats: Stats) => boolean; /** * 数量 */ count?: number; /** * 深度 */ depth?: number; /** * 排除 */ exclude?: (path: ParsedPath, stats: Stats) => boolean; } /** * 递归获取指定目录下的文件 * @param options 配置选项 * @returns 符合条件的文件路径数组 */ export declare function getFiles(options: GetFilesOptions): Promise;