VirtualFS.d.ts 877 B

12345678910111213141516171819
  1. import { FakeFS, ExtractHintOptions } from './FakeFS';
  2. import { ProxiedFS } from './ProxiedFS';
  3. import { Filename, PortablePath } from './path';
  4. export type VirtualFSOptions = {
  5. baseFs?: FakeFS<PortablePath>;
  6. folderName?: Filename;
  7. };
  8. export declare class VirtualFS extends ProxiedFS<PortablePath, PortablePath> {
  9. protected readonly baseFs: FakeFS<PortablePath>;
  10. static makeVirtualPath(base: PortablePath, component: Filename, to: PortablePath): PortablePath;
  11. static resolveVirtual(p: PortablePath): PortablePath;
  12. constructor({ baseFs }?: VirtualFSOptions);
  13. getExtractHint(hints: ExtractHintOptions): boolean;
  14. getRealPath(): PortablePath;
  15. realpathSync(p: PortablePath): PortablePath;
  16. realpathPromise(p: PortablePath): Promise<PortablePath>;
  17. mapToBase(p: PortablePath): PortablePath;
  18. mapFromBase(p: PortablePath): PortablePath;
  19. }