import * as Metadata from '../metadata/index.js'; import { CommandProcessor, type StructuredParameters } from '../model/processor.js'; import { Container } from '../model/container.js'; import { type MiddlewarePromise } from '@akala/core'; import { type FileSystemProvider } from '@akala/fs'; export interface FileSystemConfiguration extends Metadata.Configuration { path: string; source?: string; disabled?: boolean; } export type FSCommand = Metadata.Command & { config?: { fs?: FileSystemConfiguration; }; }; export interface DiscoveryOptions { fs?: FileSystemProvider; flatten?: boolean; recursive?: boolean; processor?: CommandProcessor; isDirectory?: boolean; ignoreFileWithNoDefaultExport?: boolean; relativeTo?: URL; } export declare class FileSystem extends CommandProcessor { private fs; static discoverCommands(root: string, container: Container, options?: DiscoveryOptions): Promise; static discoverMetaCommands(root: string | URL, options?: DiscoveryOptions): Promise; handle(origin: Container, command: FSCommand, param: StructuredParameters): MiddlewarePromise; constructor(fs: FileSystemProvider); } export default FileSystem;