import type { GarbageCollection } from "./garbage-collection.js"; /** One session message: a line of JSON, then the text of each part whose size, in bytes, the line announces. */ interface SessionFrame { readonly head: unknown; /** A part taken out of the list is held by nothing else. */ readonly parts: string[]; } declare class SessionFrames { private readonly collection; private readonly line; private filling; constructor(collection: GarbageCollection); accept(chunk: Buffer): SessionFrame[]; private readLine; private fill; private completeLine; private takeFrame; } export { SessionFrames }; export type { SessionFrame }; //# sourceMappingURL=session-frames.d.ts.map