export declare const escapeContent: (html: string) => string;
export declare const unescapeContent: (html: string) => string;
/** Chunk size for streaming file operations (64KB) */
export declare const STREAMING_CHUNK_SIZE: number;
/**
 * Callback for processing matched tags during streaming.
 * @param content - The content between open and close tags
 * @returns true to stop scanning, false to continue
 */
type TagMatchCallback = (content: string) => boolean;
/**
 * Stream through a file and find tags matching the pattern.
 * Memory usage: O(chunk_size + tag_size), not O(file_size).
 *
 * @param filePath - Absolute path to the file
 * @param openTag - Opening tag to search for
 * @param closeTag - Closing tag
 * @param onMatch - Callback for each matched tag content
 */
export declare function streamScanTags(filePath: string, openTag: string, closeTag: string, onMatch: TagMatchCallback): void;
/**
 * Synchronously extract a specific image's base64 data from an HTML file by its id.
 * Uses streaming to avoid loading the entire file into memory.
 *
 * @param htmlPath - Absolute path to the HTML file
 * @param imageId - The id of the image to extract
 * @returns The base64 data string, or null if not found
 */
export declare function extractImageByIdSync(htmlPath: string, imageId: string): string | null;
/**
 * Stream image script tags from source file directly to output file.
 * Memory usage: O(single_image_size), not O(all_images_size).
 *
 * @param srcFilePath - Source HTML file path
 * @param destFilePath - Destination file path to append to
 */
export declare function streamImageScriptsToFile(srcFilePath: string, destFilePath: string): void;
/**
 * Extract the LAST dump script content from HTML file using streaming.
 * Memory usage: O(dump_size), not O(file_size).
 *
 * @param filePath - Absolute path to the HTML file
 * @returns The dump script content (trimmed), or empty string if not found
 */
export declare function extractLastDumpScriptSync(filePath: string): string;
export declare function parseImageScripts(html: string): Record<string, string>;
export declare function parseDumpScript(html: string): string;
export declare function parseDumpScriptAttributes(html: string): Record<string, string>;
export declare function generateImageScriptTag(id: string, data: string): string;
export declare function generateDumpScriptTag(json: string, attributes?: Record<string, string>): string;
export {};
