import { PrefigureBuildResult } from './prefigureRuntime';
export declare function normalizeSerializedMarkup(value: unknown): string;
export declare function hasAnnotationsXml(value: string): boolean;
export declare function sanitizeSvgMarkup(markup: string): string;
/**
 * Convert a built PreFigure SVG into a container-responsive SVG.
 *
 * PreFigure output can arrive with fixed width/height attributes, which makes
 * the browser lay it out at a rigid pixel size. In narrower graph containers
 * that can truncate the visible drawing even though the underlying SVG content
 * is complete. By ensuring a viewBox exists and then switching the root SVG to
 * width/height 100%, the browser scales the existing viewport to fit the graph
 * frame instead of clipping it. If no usable viewBox exists and one cannot be
 * derived from numeric width/height attributes, preserve the original sizing
 * so this normalization step does not change SVG layout semantics.
 */
export declare function normalizeSvgViewport(markup: string): string;
export declare function sanitizeAnnotationsMarkup(markup: string): string;
export declare function sanitizeBuildResult(data: PrefigureBuildResult): {
    svgMarkup: string;
    svgMessage: string;
    annotationsXml: string;
};
//# sourceMappingURL=prefigureSanitize.d.ts.map