import * as _angular_core from '@angular/core'; import { InjectionToken, Signal } from '@angular/core'; import * as forty_cdk_disclosure from 'forty-cdk/disclosure'; /** * Shared state contract between the pieces of a Disclosure primitive. * Provided by `ForDisclosure`, consumed by `ForDisclosureTrigger` and * `ForDisclosureContent`. */ interface ForDisclosureContext { readonly open: Signal; readonly disabled: Signal; readonly triggerId: Signal; readonly contentId: Signal; /** Adopts a consumer-set static `id` on the trigger host into `triggerId`. */ adoptTriggerId(el: HTMLElement): void; /** Adopts a consumer-set static `id` on the content host into `contentId`. */ adoptContentId(el: HTMLElement): void; toggle(): void; } declare const FOR_DISCLOSURE_CONTEXT: InjectionToken; /** * Root of the Disclosure primitive. Holds the open/disabled state and * the IDs that wire the trigger to its content. * * Implements the [WAI-ARIA Disclosure pattern](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/). * * Compose it on any wrapper element with `[forDisclosureTrigger]` and * `[forDisclosureContent]` as descendants. * * @example * ```html *
* *
...
*
* ``` */ declare class ForDisclosure implements ForDisclosureContext { #private; /** * Two-way bindable open state. Use `[(open)]` for both read & write, or * `(openChange)` alone to observe transitions when the directive itself * toggles state (trigger click). The `model()` change emitter does NOT fire * for consumer-driven writes via `[(open)]`, so subscribing to * `(openChange)` is safe and only sees internal transitions. */ readonly open: _angular_core.ModelSignal; /** When true, click on the trigger is ignored and `data-disabled` is reflected. */ readonly disabled: _angular_core.InputSignalWithTransform; readonly triggerId: _angular_core.Signal; readonly contentId: _angular_core.Signal; /** * Adopts a consumer-set static `id` on the `[forDisclosureTrigger]` host into * `triggerId` (preserving anchors / external `aria-labelledby` references / * label `for`) instead of letting the `[id]` host binding clobber it. */ adoptTriggerId(el: HTMLElement): void; /** Adopts a consumer-set static `id` on the content host into `contentId`. */ adoptContentId(el: HTMLElement): void; toggle(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * Trigger button for a `ForDisclosure`. Apply on a `