import { ITransport } from '../transports/ITransport'; import { Base } from './Base'; import { IDisposable } from './IDisposable'; export declare class Serializer implements IDisposable { #private; chunkSize: number; detachLineage: boolean[]; lineage: string[]; familyTree: Record>; closureTable: Record; transport: ITransport | null; uniqueId: number; hashingFunction: (s: string) => string; constructor(transport: ITransport, chunkSize?: number, hashingFunction?: (s: string) => string); write(obj: Base): Promise<{ hash: string; traversed: Record; }>; dispose(): void; }