export interface IsOption { filter: IsFilter[]; recursive: boolean; } /** * 声明筛选方式*/ export interface IsFilter { type: EFilterType; name: string[]; } export declare enum EFilterType { file = "file", directory = "directory" } export interface MkdirOption { recursive: boolean; } export interface WriteOption { append?: boolean; autoCreate?: boolean; } export interface RmOption { deepDelete: boolean; } export interface FileEntry { name: string; extname: string; basename: string; path: string; cwd: string; relativePath: string; type: EFilterType; isLink: boolean; text: textFn; binary: binaryFn; stream: streamFn; rename: renameFn; cd: cdFn; relativeTo: relativeToFn; } declare type textFn = () => Promise; declare type binaryFn = () => Promise; declare type streamFn = () => AsyncGenerator; declare type renameFn = (name: string) => Promise; declare type cdFn = (path: string) => Promise; declare type relativeToFn = (path?: string) => Promise; export {};