import { DocometInspectableObjectClass } from '../../docomet-inspectable.js'; import type { DocometLogging } from '../../docomet-types.js'; import { Readable } from 'node:stream'; /** * Replacer * @see {@link DocometColor} * @see {@link DocometDir} * @see {@link DocometEncoding} * @see {@link DocometError} * @see {@link DocometFile} * @see {@link DocometReplaceParser} * @see {@link DocometStream} * @see {@link DocometString} * @see {@link DocometPath} */ export declare class DocometReplacer extends DocometInspectableObjectClass { #private; /** * Replaces content from stream * @param stream Readable stream * @param encoding Encoding of stream * @returns Replaced string */ static replaceStreamAsync(stream: Readable, encoding?: string): Promise; /** * Replaces content in string * @param string Target string * @returns Replaced string */ static replaceStringAsync(string: string): Promise; /** * Replaces content in file * @param path File path * @param logging Logging function */ static replaceFileAsync(path: string, logging?: DocometLogging): Promise; }