@neodx/vfs
Version:
Simple virtual file system - working dir context, lazy changes, different modes, integrations and moreover
19 lines (16 loc) • 708 B
TypeScript
import { m as VfsPlugin, B as BaseVfs } from '../_internal/types-Bu8eLcj4.js';
import { WalkGlobCommonParams } from '@neodx/glob';
import { ScanVfsParams } from './scan.js';
interface GlobPluginApi {
glob(params: GlobVfsParams): Promise<string[]>;
glob(glob: string | string[], params?: Omit<GlobVfsParams, 'glob'>): Promise<string[]>;
}
interface GlobVfsParams extends Pick<ScanVfsParams, 'maxDepth'>, WalkGlobCommonParams {
glob: string | string[];
}
declare function glob(): VfsPlugin<GlobPluginApi>;
declare function globVfs(
vfs: BaseVfs,
{ glob, ignore, timeout, signal, log, maxDepth }: GlobVfsParams
): Promise<string[]>;
export { type GlobPluginApi, type GlobVfsParams, glob, globVfs };