import { Exception, type ExceptionExtra, type ExceptionJSON } from 'kerium'; import type { FileSystem } from './filesystem.js'; /** * @deprecated Use {@link ExceptionJSON} instead * @category Internals */ export type ErrnoErrorJSON = ExceptionJSON; /** * @deprecated Use {@link Exception} instead * @category Internals */ export declare const ErrnoError: typeof Exception; /** * @deprecated Use {@link Exception} instead * @category Internals */ export type ErrnoError = Exception; export declare function withPath(e: E, path: string): E; /** * @internal @hidden */ export declare function wrap(fs: FS, prop: Prop, path: string | ExceptionExtra, dest?: string): FS[Prop]; /** * @internal * Wraps an `fs` so that thrown errors aren't empty */ export declare function withExceptionContext(fs: FS, context: ExceptionExtra): FS;