/** * ZIP Stream Parser - Browser Version * * A streaming ZIP parser for browsers using native DecompressionStream. * Falls back to pure JavaScript implementation for older browsers. * Uses the browser Duplex stream implementation for compatibility. */ import { type CrxHeader, type EntryProps, type EntryVars, type ParseOptions } from "./parser-core.js"; import { type PullStreamPublicApi, type InflateFactory, type ZipEntry } from "./stream.base.js"; import { Duplex } from "../../stream/index.js"; export type { CrxHeader, EntryProps, EntryVars, ParseOptions, ZipEntry }; export type ParseStream = Duplex & { promise(): Promise; } & PullStreamPublicApi & { crxHeader?: CrxHeader; }; export declare function createParseClass(createInflateRawFn: InflateFactory): { new (opts?: ParseOptions): ParseStream; }; declare const BaseParse: new (opts?: ParseOptions) => ParseStream; export declare class Parse extends BaseParse { } export declare function createParse(opts?: ParseOptions): ParseStream;