import type { EventEmitter } from 'node:events'; import { Readable, Transform } from 'node:stream'; import { type Tag } from 'sax-wasm'; import { type Entry } from 'unzipper'; import * as dto from './dto'; export type GarItem = InstanceType<(typeof SLUG_DTO_MAP)[keyof typeof SLUG_DTO_MAP]>; export interface GarTransformOptions { filter?(file: string): boolean; } export declare class GarTransformError extends Error { readonly file: string; readonly error: unknown; readonly attributes: Readonly>; readonly tag: Tag; constructor(file: string, error: unknown, attributes: Readonly>, tag: Tag); } declare class GarTransform extends Transform { readonly options: GarTransformOptions; private readonly zipParser; private readonly entryTasks; constructor(options?: GarTransformOptions); handleFile(entry: Entry): Promise; } interface GarTransformEmitter extends AsyncIterable, EventEmitter> { } declare const GarExport: { new (...args: ConstructorParameters): Omit & GarTransformEmitter; }; export { GarExport as GarTransform }; declare const SLUG_DTO_MAP: { readonly addr_obj: typeof dto.AddressObject; readonly addr_obj_division: typeof dto.AddressObjectDivision; readonly addr_obj_params: typeof dto.AddressObjectParam; readonly adm_hierarchy: typeof dto.AdmHierarchyItem; readonly apartments: typeof dto.Apartment; readonly apartments_params: typeof dto.ApartmentParam; readonly carplaces: typeof dto.CarPlace; readonly carplaces_params: typeof dto.CarPlaceParam; readonly change_history: typeof dto.ChangeHistoryItem; readonly houses: typeof dto.House; readonly houses_params: typeof dto.HouseParam; readonly mun_hierarchy: typeof dto.MunHierarchyItem; readonly normative_docs: typeof dto.NormDoc; readonly reestr_objects: typeof dto.RegistryObjectsItem; readonly rooms: typeof dto.Room; readonly rooms_params: typeof dto.RoomParam; readonly steads: typeof dto.Stead; readonly steads_params: typeof dto.SteadParam; readonly addhouse_types: typeof dto.AdditionalHouseType; readonly addr_obj_types: typeof dto.AddressObjectType; readonly apartment_types: typeof dto.ApartmentType; readonly house_types: typeof dto.HouseType; readonly normative_docs_kinds: typeof dto.NormDocKind; readonly normative_docs_types: typeof dto.NormDocType; readonly object_levels: typeof dto.ObjectLevel; readonly operation_types: typeof dto.OperationType; readonly param_types: typeof dto.ParamType; readonly room_types: typeof dto.RoomType; };