UNPKG

552 BTypeScriptView Raw
1import { Resolver, DirectoryService } from '@fimbul/ymir';
2import { CachedFileSystem } from '../cached-file-system';
3export declare class NodeResolver implements Resolver {
4 private fs;
5 private directories;
6 private defaultExtensions;
7 constructor(fs: CachedFileSystem, directories: DirectoryService);
8 getDefaultExtensions(): readonly string[];
9 resolve(id: string, basedir?: string, extensions?: readonly string[], paths?: ReadonlyArray<string>): string;
10 require(id: string, options?: {
11 cache?: boolean;
12 }): any;
13}