| | |
| | | } |
| | | export interface IStatOptions { |
| | | bigint?: boolean; |
| | | throwIfNoEntry?: boolean; |
| | | } |
| | | export interface IFStatOptions { |
| | | bigint?: boolean; |
| | | } |
| | | export declare function pathToFilename(path: PathLike): string; |
| | | export declare function filenameToSteps(filename: string, base?: string): string[]; |
| | |
| | | private lstatBase; |
| | | lstatSync(path: PathLike): Stats<number>; |
| | | lstatSync(path: PathLike, options: { |
| | | throwIfNoEntry?: true | undefined; |
| | | }): Stats<number>; |
| | | lstatSync(path: PathLike, options: { |
| | | bigint: false; |
| | | throwIfNoEntry?: true | undefined; |
| | | }): Stats<number>; |
| | | lstatSync(path: PathLike, options: { |
| | | bigint: true; |
| | | throwIfNoEntry?: true | undefined; |
| | | }): Stats<bigint>; |
| | | lstat(path: PathLike, callback: TCallback<Stats>): any; |
| | | lstat(path: PathLike, options: IStatOptions, callback: TCallback<Stats>): any; |
| | | lstatSync(path: PathLike, options: { |
| | | throwIfNoEntry: false; |
| | | }): Stats<number> | undefined; |
| | | lstatSync(path: PathLike, options: { |
| | | bigint: false; |
| | | throwIfNoEntry: false; |
| | | }): Stats<number> | undefined; |
| | | lstatSync(path: PathLike, options: { |
| | | bigint: true; |
| | | throwIfNoEntry: false; |
| | | }): Stats<bigint> | undefined; |
| | | lstat(path: PathLike, callback: TCallback<Stats>): void; |
| | | lstat(path: PathLike, options: IStatOptions, callback: TCallback<Stats>): void; |
| | | private statBase; |
| | | statSync(path: PathLike): Stats<number>; |
| | | statSync(path: PathLike, options: { |
| | | throwIfNoEntry?: true; |
| | | }): Stats<number>; |
| | | statSync(path: PathLike, options: { |
| | | throwIfNoEntry: false; |
| | | }): Stats<number> | undefined; |
| | | statSync(path: PathLike, options: { |
| | | bigint: false; |
| | | throwIfNoEntry?: true; |
| | | }): Stats<number>; |
| | | statSync(path: PathLike, options: { |
| | | bigint: true; |
| | | throwIfNoEntry?: true; |
| | | }): Stats<bigint>; |
| | | stat(path: PathLike, callback: TCallback<Stats>): any; |
| | | stat(path: PathLike, options: IStatOptions, callback: TCallback<Stats>): any; |
| | | statSync(path: PathLike, options: { |
| | | bigint: false; |
| | | throwIfNoEntry: false; |
| | | }): Stats<number> | undefined; |
| | | statSync(path: PathLike, options: { |
| | | bigint: true; |
| | | throwIfNoEntry: false; |
| | | }): Stats<bigint> | undefined; |
| | | stat(path: PathLike, callback: TCallback<Stats>): void; |
| | | stat(path: PathLike, options: IStatOptions, callback: TCallback<Stats>): void; |
| | | private fstatBase; |
| | | fstatSync(fd: number): Stats<number>; |
| | | fstatSync(fd: number, options: { |
| | |
| | | fstatSync(fd: number, options: { |
| | | bigint: true; |
| | | }): Stats<bigint>; |
| | | fstat(fd: number, callback: TCallback<Stats>): any; |
| | | fstat(fd: number, options: IStatOptions, callback: TCallback<Stats>): any; |
| | | fstat(fd: number, callback: TCallback<Stats>): void; |
| | | fstat(fd: number, options: IFStatOptions, callback: TCallback<Stats>): void; |
| | | private renameBase; |
| | | renameSync(oldPath: PathLike, newPath: PathLike): void; |
| | | rename(oldPath: PathLike, newPath: PathLike, callback: TCallback<void>): void; |