UNPKG

805 BTypeScriptView Raw
1import type { FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod } from './adapters/fs';
2import * as async from './providers/async';
3import Settings, { Options } from './settings';
4import type { Stats } from './types';
5declare type AsyncCallback = async.AsyncCallback;
6declare function stat(path: string, callback: AsyncCallback): void;
7declare function stat(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
8declare namespace stat {
9 function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Stats>;
10}
11declare function statSync(path: string, optionsOrSettings?: Options | Settings): Stats;
12export { Settings, stat, statSync, AsyncCallback, FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod, Options, Stats };