import type { PackagePlacement } from "./style-utils"; export interface RenderedPackage { componentId: string; packageId: string; isSelectedByDefault: boolean; /** The sheet it renders in, or null outside sheets. */ sheetId: string | null; visible: boolean; /** Retain a choice hidden by selection itself, while honoring independent rules. */ available?: boolean; /** Whether its carousel presentation is active, regardless of rule visibility. */ presentationActive?: boolean; tab?: { owner: symbol; id: string; }; /** Whether it shows both before and once it's selected, so it can take over the selection. */ selectable: boolean; } /** * The replacement for a selection made unavailable by independent rules, or * `undefined` to keep it. Prefer a tab's authored default, then one outside * the tabs, then the first selectable package in a * tab, then outside. The selection stays when no copy is on screen or nothing * else can take it. * * This follows the order in purchases-android "Reconcile package selection * when a window size rule hides the selected package" (#4198, not merged yet), * with tab activation restoring remembered picks in Tabs.svelte. iOS differs: it * only picks within the hidden package's own tab, or among the packages * outside tabs (PackageValidator.swift). Either way, a package hidden in an * open sheet is replaced from that sheet first, when one there can take it. */ export declare function reconciledSelection(current: string | undefined, rendered: Iterable, placements: Map): string | undefined;