import { IStringBuilder } from './_types'; /** * Class for building strings that will only concatenate them upon calling toString(). */ export default class StringBuilder implements IStringBuilder { #private; /** * Create a new StringBuilder. * @param value */ constructor(...value: string[]); /** * Append the value to the builder * @param value */ append(value: string): void; /** * Appends the value to the builder with a new line afterwards. * @param value */ appendLine(value: string): void; /** * Clears all values from the StringBuilder. */ clear(): void; /** * Returns a string representation of the StringBuilder. */ toString(): string; }