import * as _angular_core from '@angular/core'; import { OnDestroy, ElementRef, TemplateRef, Type, InputSignal, Provider, AfterViewInit, DestroyRef, EnvironmentProviders, InjectionToken } from '@angular/core'; import { Overlay, ConnectionPositionPair, FlexibleConnectedPositionStrategyOrigin, OverlayRef } from '@angular/cdk/overlay'; import { Subject } from 'rxjs'; import * as _lucca_front_ng_popover2 from '@lucca-front/ng/popover2'; import { LuTranslation } from '@lucca-front/ng/core'; interface LuCalloutLabel { screenReaderDescription: string; } type PopoverPosition = 'above' | 'below' | 'before' | 'after'; declare class PopoverDirective implements OnDestroy { #private; overlay: Overlay; elementRef: ElementRef; intl: _angular_core.InputSignalWithTransform>; content: TemplateRef | Type; luPopoverPosition: InputSignal; overlayScrollStrategy: 'reposition' | 'block' | 'close'; luPopoverDisabled: boolean; luPopoverTrigger: _angular_core.ModelSignal<"click" | "click+hover" | "hover+focus">; customPositions?: ConnectionPositionPair[]; /** * Removes close button entirely, this is bad for a11y but sometimes we want it. */ luPopoverNoCloseButton: boolean; /** * Allows to anchor the popover to another element instead of the trigger one * for placement purpose */ luPopoverAnchor: InputSignal; luPopoverOpenDelay: InputSignal; luPopoverCloseDelay: InputSignal; luPopoverPositionRef: _angular_core.WritableSignal; open$: Subject<"click" | "focus" | "hover">; close$: Subject; luPopoverClosed: _angular_core.OutputEmitterRef; luPopoverOpened: _angular_core.OutputEmitterRef; positionPairs: Record; opened: _angular_core.WritableSignal; ariaControls: string; protected additionalProviders: Provider[]; constructor(); ngOnDestroy(): void; onMouseEnter(): void; onFocus(): void; onMouseLeave(): void; click(): void; close(): void; openPopover(withBackdrop?: boolean, disableCloseButtonFocus?: boolean, disableInitialTriggerFocus?: boolean): void; focusBackToContent(event: Event): void; focusOutBefore(): void; updatePosition(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; static ngAcceptInputType_luPopoverDisabled: unknown; static ngAcceptInputType_luPopoverNoCloseButton: unknown; } declare class PopoverContentComponent implements AfterViewInit, OnDestroy { #private; intl: _angular_core.InputSignalWithTransform<_lucca_front_ng_popover2.ILuPopover2Label, Partial<_lucca_front_ng_popover2.ILuPopover2Label>>; config: _lucca_front_ng_popover2.PopoverConfig; destroyRef: DestroyRef; contentId: string; content: _angular_core.TemplateRef | _angular_core.Type; closed$: Subject; contentChangedDebounceTime: number; mouseEnter$: Subject; mouseEnter(): void; mouseLeave$: Subject; mouseLeave(): void; contentChanged(): void; ngOnDestroy(): void; ngAfterViewInit(): void; grabFocus(): void; close(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare function configureLuPopover(): EnvironmentProviders; declare const LU_POPOVER2_TRANSLATIONS: InjectionToken>; interface ILuPopover2Label { close: string; } declare const luPopoverTranslations: LuTranslation; interface PopoverConfig { triggerElement: HTMLElement; content: TemplateRef | Type; ref: OverlayRef; contentId: string; disableCloseButtonFocus: boolean; disableInitialTriggerFocus: boolean; noCloseButton: boolean; } declare const POPOVER_CONFIG: InjectionToken; export { LU_POPOVER2_TRANSLATIONS, POPOVER_CONFIG, PopoverContentComponent, PopoverDirective, configureLuPopover, luPopoverTranslations }; export type { ILuPopover2Label, PopoverConfig, PopoverPosition };