import { EntityWithBindings6, PageDSL8, WidgetProps, WidgetTypes } from '../types/index.js';
export type FlattenedWidgetProps = Omit<WidgetProps, 'children'> & {
    type: keyof typeof WidgetTypes;
    children?: string[];
} & EntityWithBindings6;
type WidgetMap = Record<string, FlattenedWidgetProps>;
/**
 * Fixes invalid DSL from previous bugs on initial load.
 *  1. removes duplicate IDs
 *  2. de-duplicates identical Section and Canvas names because their names don't matter
 *  3. removes timers and stateVars from the page widget, as they are processed separately
 */
export declare function normalize<T = WidgetMap>(dsl?: PageDSL8): {
    entities: {
        canvasWidgets: T;
    };
    result: string;
};
export declare function denormalize<T = WidgetMap>(pageWidgetId: string, entities: {
    canvasWidgets: T;
}): PageDSL8;
export {};
//# sourceMappingURL=normalize.d.ts.map