export interface ContentMapSegment { type: 'html' | 'widget'; start: number; end: number; content?: string; widgetId?: string; } export interface ContentMap { totalLength: number; segments: ContentMapSegment[]; } export declare const RICHSTRING_WIDGET_TYPES: readonly ["cf.platform.richString", "cf.cplace.demoWidgets.demoRichString"]; export type RichStringWidgetType = (typeof RICHSTRING_WIDGET_TYPES)[number]; export declare function extractStringConfigValue(configuration: any, configAttribute: string): string; export declare function isRichStringWidgetType(widgetType: string): boolean; export declare const SCRIPT_EXECUTING_WIDGETS: Readonly>; export declare function getScriptPropertyKey(widgetType: string): string | undefined; export declare function parseScriptEnvelope(value: unknown): string; export interface EmbeddedWidgetSnapshot { widgetId: string; widgetType: string; properties: Record; } export interface ParsedDecodedContent { embeddedWidgets: EmbeddedWidgetSnapshot[]; contentMap: ContentMap; } export declare function parseDecodedRichStringContent(rawContent: string): ParsedDecodedContent; export declare function reassembleDecodedContent(contentMap: ContentMap, widgetsById: Map): string; //# sourceMappingURL=layout-richstring-shared.d.ts.map