3742650c32f3c0f453967f3027db3a5b50475054467f33006b6aa57d6f2df6ba27b3a4b0322ca78847777d509061f4bd62bac88c386838801dadfe21e2d6df 665 B

12345678910111213
  1. /// <reference types="node" />
  2. import * as fs from 'fs';
  3. import type { ErrnoException } from '../types';
  4. export declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException | null, stats: fs.Stats) => void) => void;
  5. export declare type StatSynchronousMethod = (path: string) => fs.Stats;
  6. export interface FileSystemAdapter {
  7. lstat: StatAsynchronousMethod;
  8. stat: StatAsynchronousMethod;
  9. lstatSync: StatSynchronousMethod;
  10. statSync: StatSynchronousMethod;
  11. }
  12. export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
  13. export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;