import * as i0 from '@angular/core'; import { AfterContentInit, Signal, TemplateRef, ElementRef, ViewContainerRef, OnInit, OnDestroy, ValueProvider } from '@angular/core'; import { NumberInput } from '@angular/cdk/coercion'; import { ConnectedOverlayPositionChange, ConnectedPosition, OverlayConfig } from '@angular/cdk/overlay'; import { ExposesState, ExposesSide } from '@spartan-ng/brain/core'; import { Observable } from 'rxjs'; declare class BrnHoverCard implements AfterContentInit { private readonly _trigger; private readonly _content; ngAfterContentInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class BrnHoverCardContent implements ExposesState, ExposesSide { private readonly _contentService; readonly state: Signal<"open" | "closed">; readonly side: Signal<"top" | "bottom" | "left" | "right">; readonly template: TemplateRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * We are building on shoulders of giants here and use the implementation provided by the incredible TaigaUI * team: https://github.com/taiga-family/taiga-ui/blob/main/projects/core/directives/dropdown/dropdown-hover.directive.ts * Check them out! Give them a try! Leave a star! Their work is incredible! */ type BrnHoverCardOptions = Partial<{ attachTo: ElementRef; attachPositions: ConnectedPosition[]; align: 'top' | 'bottom' | 'left' | 'right'; sideOffset: number; } & OverlayConfig>; declare class BrnHoverCardContentService { private readonly _overlay; private readonly _zone; private readonly _psBuilder; private readonly _directionality; private readonly _content; private readonly _state; private _config; private _overlayRef?; private _positionStrategy?; private _destroyed$; private readonly _positionChangesObservables$; private readonly _overlayHoveredObservables$; readonly positionChanges$: Observable; readonly hovered$: Observable; readonly state: Signal<"open" | "closed">; readonly side: Signal<'top' | 'bottom' | 'left' | 'right'>; constructor(); setConfig(config: BrnHoverCardOptions): void; setContent(value: TemplateRef | BrnHoverCardContent, vcr: ViewContainerRef): void; setState(newState: 'open' | 'closed'): void; show(): void; hide(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class BrnHoverCardTrigger implements OnInit, OnDestroy { private readonly _destroy$; private readonly _vcr; private readonly _zone; private readonly _el; private readonly _contentService; private readonly _focusMonitor; readonly focused$: Observable; readonly hovered$: Observable; readonly showing$: Observable; private readonly _defaultOptions; readonly showDelay: i0.InputSignalWithTransform; readonly hideDelay: i0.InputSignalWithTransform; readonly animationDelay: i0.InputSignalWithTransform; readonly sideOffset: i0.InputSignalWithTransform; readonly align: i0.InputSignal<"top" | "bottom" | "left" | "right">; readonly brnHoverCardTriggerFor: i0.InputSignal | undefined>; readonly mutableBrnHoverCardTriggerFor: Signal | undefined>>; private readonly _brnHoverCardTriggerForState; constructor(); ngOnInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } interface BrnHoverCardDefaultOptions { showDelay: number; hideDelay: number; animationDelay: number; sideOffset: number; align: 'top' | 'bottom'; } declare const defaultOptions: BrnHoverCardDefaultOptions; declare function provideBrnHoverCardDefaultOptions(options: Partial): ValueProvider; declare function injectBrnHoverCardDefaultOptions(): BrnHoverCardDefaultOptions; declare const BrnHoverCardImports: readonly [typeof BrnHoverCard, typeof BrnHoverCardContent, typeof BrnHoverCardTrigger]; export { BrnHoverCard, BrnHoverCardContent, BrnHoverCardContentService, BrnHoverCardImports, BrnHoverCardTrigger, defaultOptions, injectBrnHoverCardDefaultOptions, provideBrnHoverCardDefaultOptions }; export type { BrnHoverCardDefaultOptions, BrnHoverCardOptions };