import { File, Stats } from '@zenfs/core'; import { FileSystem } from '@zenfs/core/filesystem.js'; export interface DownloadZipOptions { /** * Base URL for the registry */ baseUrl: string; /** * Package size threshold for downloading zip files */ packageSizeThreshold?: number; /** * Filter for package names */ filter?: (packageName: string) => boolean; } /** * Configuration options for a UnpkgFS file system. */ export interface UnpkgOptions { /** * Fetch function to use */ fetch?: typeof fetch; /** * Unpkg site URL */ baseUrl: string; /** * Download zip files instead of individual files */ downloadZip?: DownloadZipOptions; } declare const UnpkgFS_base: import("@zenfs/core").Mixin, import("@zenfs/core").ReadonlyMixin>; export declare class UnpkgFS extends UnpkgFS_base { private readonly options; _sync: import("@zenfs/core").StoreFS; private _fetch; private _index; private _packagesOfZipFs; private parseFileMetaAndSetToIndex; constructor(options: UnpkgOptions); private fetchPackageMetaFromRegistry; private fetchFileMeta; private fetchFile; stat(path: string): Promise; openFile(path: string, flag: string): Promise; readdir(path: string): Promise; } declare const _Unpkg: { name: string; options: { baseUrl: { type: "string"; required: true; }; downloadZip: { type: "object"; validator(opt: DownloadZipOptions): void; required: false; }; }; isAvailable(): boolean; create(options: UnpkgOptions): UnpkgFS; }; type _Unpkg = typeof _Unpkg; export interface Unpkg extends _Unpkg { } export declare const Unpkg: Unpkg; export {};