import { EventEmitter, InjectionToken } from '@angular/core'; import type { Provider, Type } from '@angular/core'; import type { ISymbioteEvent } from '@symbiote-native/engine'; export declare const GATED_ACCESSIBILITY_EVENTS: readonly ["accessibilityAction", "accessibilityTap", "magicTap", "accessibilityEscape"]; export type IGatedAccessibilityEvent = (typeof GATED_ACCESSIBILITY_EVENTS)[number]; export interface IGateDemand { wantsGate(name: IGatedAccessibilityEvent): boolean; } export declare const GATE_DEMAND: InjectionToken; /** * Declare a wrapper as the demand for everything in its own template. * * Takes a THUNK rather than the class: the entry sits in the decorator of the very class it names, * so the reference has to be late. */ export declare function provideGateDemand(get: () => Type): Provider; /** * For a component that OWNS a gate — the innermost one, which writes the flag. */ export declare function injectGateDemand(): IGateDemand | null; /** * For a component that PROVIDES demand and is itself wrapped. * * `skipSelf` is not optional here: a component resolves its own `viewProviders`, so without it the * lookup reaches this class's own `useExisting` entry and Angular throws NG0200 at construction. * Loud rather than silent, but the shape is easy to get wrong, which is why the two lookups are * separate functions instead of one with a flag. */ export declare function injectGateDemandAbove(): IGateDemand | null; /** * The one expression both roles evaluate. * * A demand from above OVERRIDES the local emitter, and that override is the whole mechanism: a * middle link's own emitter is `.observed` precisely because the level above bound it, so answering * from it would report "wanted" for a chain nobody subscribed to. */ export declare function gateWanted(above: IGateDemand | null, name: IGatedAccessibilityEvent, own: EventEmitter): boolean;