/** * Shared background-lock utility for overlay components (dialog, drawer, etc.). * * Uses a reference count so that multiple stacked overlays each call * lock / unlock independently without interfering with each other. The `inert` * attribute is applied once when the first overlay opens and removed once the * last one closes. * * The factory pattern (`createBackgroundLock`) provides test-isolated instances. * The module-level `lockBackground` / `unlockBackground` are the defaults used * by all runtime components. */ export type BackgroundLock = { lock(host: Element): void; unlock(): void; }; export declare function createBackgroundLock(): BackgroundLock; /** Marks sibling elements as inert. Safe to call from multiple concurrent overlays. */ export declare const lockBackground: (host: Element) => void; /** Releases the background lock. Removes inert when all overlays have closed. */ export declare const unlockBackground: () => void; //# sourceMappingURL=background-lock.d.ts.map