/// export declare class PopDataBuffer { protected buffer: string; /** * Constructs a new segmented reader. */ constructor(); /** * Gets the length of the buffer. * @returns the length of the buffer. */ get length(): number; /** * Writes an chunk to the segmented reader. * @param chunk the chunk. */ write(chunk: Buffer): void; /** * Reads the given size from the buffer. * @param size the size to read. * @returns the data. */ read(size: number): string; /** * Gets an segment from the segmented reader. * @param separator the separator. * @param add gets added to the index of the segment subtraction, allows some chars to be preserved of the separator. * @returns the segment. */ segment(separator?: string, add?: number): string | null; }