import type { EcoComponentConfig, EcoComponentDependencies, EcoPageLayoutEntry, EcoPageLayouts } from '../types/public-types.js'; /** * Normalizes `layout` page options to an outer→inner stack of layout entries. */ export declare function normalizePageLayouts(layout?: EcoPageLayouts): EcoPageLayoutEntry[]; /** * Merges layout components into `dependencies.components` without duplicates. */ export declare function mergeLayoutDependencies(dependencies: EcoComponentDependencies | undefined, layoutEntries: EcoPageLayoutEntry[]): EcoComponentDependencies | undefined; /** * Writes normalized layout metadata onto a page `config`. */ export declare function applyPageLayoutConfig(pageConfig: EcoComponentConfig, layoutEntries: EcoPageLayoutEntry[]): void; /** * Migrates MDX-exported `config.layout` values onto normalized layout metadata. * * @remarks * `eco.page({ layout })` already normalizes at factory time. MDX modules that * export `config.layout` directly still need this import-time migration. */ export declare function ensurePageConfigLayouts(config: EcoComponentConfig | undefined): EcoComponentConfig | undefined;