/** * Whether a default package rendering now should select itself. It should * while the paywall, a newly chosen tab or a sheet first renders, but not when * a rule shows its stack again later and the user has picked something else. */ export type DefaultSelectionOpen = () => boolean; /** * Open until Svelte has applied the update in progress, which mounts the * paywall's, sheet's or new tab's packages and runs their effects. A tab * switch reuses the package components, so the window can't close on a mount. * Packages that render in a later update, such as a stack a rule shows again, * find it closed. Covered by the "package selection" tests in * window-size-rules.test.ts and by package-default-selection-tabs.test.ts. */ export declare function openDefaultSelection(): DefaultSelectionOpen; export declare function setDefaultSelectionContext(isOpen: DefaultSelectionOpen): void; export declare function getDefaultSelectionContext(): DefaultSelectionOpen;