/** The tri-state a select-all controller derives from its members. */ type TriState = "all" | "some" | "none"; /** * @description Derives a controller's tri-state from its members' checked * states: `"all"` when every member is checked (and there is at least one), * `"none"` when none are, `"some"` for a subset. * * @param checked - Each member's checked state. * @returns The derived tri-state. */ declare function deriveTriState(checked: readonly boolean[]): TriState; /** * @description Initializes select-all groups in a scope: prunes groups whose * controllers left the DOM (disposing their effects), creates groups for new * controllers, and recounts existing ones. Idempotent: re-running is a no-op. * * @param scope - Root to scan; defaults to the whole document. */ declare function initCheckboxes(scope?: ParentNode): void; export { deriveTriState, initCheckboxes }; //# sourceMappingURL=checkbox.d.ts.map