import { NoSyncFile } from '@zenfs/core/file.js'; import { FileSystem, type FileSystemMetadata } from '@zenfs/core/filesystem.js'; import { Stats } from '@zenfs/core/stats.js'; /** * Options for IsoFS file system instances. */ export interface IsoOptions { /** * The ISO file in a buffer. */ data: Uint8Array; /** * The name of the ISO (optional; used for debug messages / identification via metadata.name). */ name?: string; } declare const IsoFS_base: import("@zenfs/core/mixins/shared.js").Mixin Promise>>, import("@zenfs/core/mixins/readonly.js").ReadonlyMixin>; /** * Mounts an ISO file as a read-only file system. * * Supports: * * Vanilla ISO9660 ISOs * * Microsoft Joliet and Rock Ridge extensions to the ISO9660 standard */ export declare class IsoFS extends IsoFS_base { protected data: Uint8Array; private _pvd?; private _root; private _name; /** * **Deprecated. Please use IsoFS.Create() method instead.** * * Constructs a read-only file system from the given ISO. * @param data The ISO file in a buffer. * @param name The name of the ISO (optional; used for debug messages / identification via getName()). */ constructor({ data, name }: IsoOptions); metadata(): FileSystemMetadata; statSync(path: string): Stats; openFileSync(path: string, flag: string): NoSyncFile; readdirSync(path: string): string[]; private _getDirectoryRecord; private _getStats; } declare const _Iso: { readonly name: "Iso"; readonly isAvailable: () => boolean; readonly options: { readonly data: { readonly type: "object"; readonly required: true; readonly validator: (arg: unknown) => void; }; }; readonly create: (options: IsoOptions) => IsoFS; }; type _Iso = typeof _Iso; export interface Iso extends _Iso { } export declare const Iso: Iso; export {};