UNPKG

@uswriting/exiftool

Version:

ExifTool powered by WebAssembly to extract and write metadata from files in browsers and Node.js environments using zeroperl

44 lines (43 loc) 1.22 kB
/** * A lightweight StringBuilder */ export declare class StringBuilder { private parts; /** * Creates a new StringBuilder instance * @param initialValue Optional initial string value */ constructor(initialValue?: string); /** * Appends a string to the builder * @param str The string to append * @returns The StringBuilder instance for chaining */ append(str: string): StringBuilder; /** * Clears all content from the builder * @returns The StringBuilder instance for chaining */ clear(): StringBuilder; /** * Appends a string followed by a newline character * @param str The string to append * @returns The StringBuilder instance for chaining */ appendLine(str?: string): StringBuilder; /** * Returns the current length of the string */ get length(): number; /** * Converts the StringBuilder to a string * @returns The built string */ toString(): string; /** * Checks if a string contains or ends with line breaks * @param str The string to check * @returns True if the string contains any line breaks */ static isMultiline(str: string): boolean; }