import { Dirent } from 'node:fs'; /** * Config options for the source-filesystem plugin */ interface sourceFilesystemConfig { /** * File extensions to include */ [key: string]: any; } interface InitializedSourceFilesystemConfig extends sourceFilesystemConfig { extensions: string[]; } interface FileNode extends Dirent { path: string; data: { [key: string]: any; }; } interface GatherFileNodesOptions { extensions?: string[]; readDirectory?: (path: string) => Promise; } export { FileNode, GatherFileNodesOptions, InitializedSourceFilesystemConfig, sourceFilesystemConfig };