import { WidgetCompanionLayoutU, WidgetSidebarModeU } from '../types/widget-config'; /** The sidebar side after `auto` has been resolved against the host dir. */ export type WidgetSidebarSideResolvedU = 'left' | 'right'; export declare const DEFAULT_COMPANION_LAYOUTS: readonly ["compact", "sidebar", "fullscreen"]; /** * Resolve the layouts available to the companion. Configured order is part of * the public contract, so it is preserved while duplicates and invalid runtime * values are discarded. An omitted or unusable list falls back to every * layout, keeping the result non-empty for all consumers. */ export declare function normalizeCompanionLayouts(layouts?: unknown): readonly WidgetCompanionLayoutU[]; /** Choose an allowed initial/fallback layout for the companion shell. */ export declare function resolveCompanionDefaultLayout(configuredDefault: unknown, allowedLayouts: readonly WidgetCompanionLayoutU[]): WidgetCompanionLayoutU; /** * Resolve the physical edge the sidebar occupies. `auto` (and any unusable * runtime value) follows the host document's direction — the inline-end edge, * which is the historical behavior — while an explicit side wins in both * directions. */ export declare function resolveSidebarSide(side: unknown, dir: string): WidgetSidebarSideResolvedU; /** Resolve how the sidebar coexists with the page; anything but `docked` floats. */ export declare function resolveSidebarMode(mode: unknown): WidgetSidebarModeU; //# sourceMappingURL=companion-layout.d.ts.map