export interface FsError extends Error { code: string; virtualPath: string; } export declare function enoent(path: string | { virtual: string; }): FsError; export declare function enotdir(path: string | { virtual: string; }): FsError; export declare function eisdir(path: string | { virtual: string; }): FsError; export declare function eexist(path: string | { virtual: string; }): FsError; export declare function eacces(path: string | { virtual: string; }): FsError; export declare function enotempty(path: string | { virtual: string; }): FsError; export declare function einval(path: string | { virtual: string; }, message?: string): FsError; export declare function exdev(path: string | { virtual: string; }): FsError; export declare function readdirError(path: string | { virtual: string; rawPath?: string; }, key: string, isFile: (p: string) => boolean | Promise, isDir: (p: string) => boolean | Promise): Promise; export declare function listingError(path: string | { virtual: string; rawPath?: string; }, key: string, isFile: (p: string) => boolean | Promise, isDir: (p: string) => boolean | Promise): Promise; export interface NoMountError extends Error { noMount: true; } export declare function noMount(path: string): NoMountError; export declare function isNoMount(err: unknown): boolean; export declare function isMissError(exc: unknown): boolean; export declare function isMissingPath(err: unknown): boolean; export interface MissingOpError extends FsError { op: string; } export declare function enotsup(resource: string, op: string, path: string | { virtual: string; rawPath?: string; }): MissingOpError; export declare function isMissingOp(err: unknown, op: string): boolean; export declare function eaccesRefused(message: string, path: string | { virtual: string; rawPath?: string; }): FsError; export declare function erofsReadOnly(message: string, path: string | { virtual: string; rawPath?: string; }): FsError; export declare function gnuStrerror(code: string | undefined): string | null; export declare function fsStrerror(err: unknown): string | null; export declare function errorVirtualPath(err: unknown): string; export declare function isFsError(err: unknown): boolean; export declare function isEnoent(err: unknown): boolean; export declare function isEisdir(err: unknown): boolean; export declare function isEexist(err: unknown): boolean; export declare function isEacces(err: unknown): boolean; export declare function isErofs(err: unknown): boolean; export declare function blamedPath(err: unknown): string | null; export declare function isWalkError(err: unknown): boolean; export declare function operandSpelling(path: string, operand: { virtual: string; rawPath?: string; }): string; export declare function fsErrorLine(cmdName: string, path: string | { virtual: string; rawPath?: string; }, err: unknown): string; export declare function formatFsError(cmdName: string, err: unknown, paths?: readonly { virtual: string; rawPath: string; }[]): Uint8Array; //# sourceMappingURL=errors.d.ts.map