1 | import type * as fsStat from '@nodelib/fs.stat';
|
2 | import type { Dirent, ErrnoException } from '../types';
|
3 | export type ReaddirAsynchronousMethod = (filepath: string, options: {
|
4 | withFileTypes: true;
|
5 | }, callback: (error: ErrnoException | null, files: Dirent[]) => void) => void;
|
6 | export type ReaddirSynchronousMethod = (filepath: string, options: {
|
7 | withFileTypes: true;
|
8 | }) => Dirent[];
|
9 | export type FileSystemAdapter = fsStat.FileSystemAdapter & {
|
10 | readdir: ReaddirAsynchronousMethod;
|
11 | readdirSync: ReaddirSynchronousMethod;
|
12 | };
|
13 | export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
|
14 | export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
|