import { ComponentType } from '@angular/cdk/overlay'; import { InjectionToken, OnDestroy, TemplateRef } from '@angular/core'; import { KbqActionsPanelConfig } from './actions-panel-config'; import { KbqActionsPanelRef } from './actions-panel-ref'; import * as i0 from "@angular/core"; /** Injection token that can be used to access the data that was passed in to actions panel. */ export declare const KBQ_ACTIONS_PANEL_DATA: InjectionToken; /** * Context for actions panel template. */ export type KbqActionsPanelTemplateContext = { /** * Data passed to actions panel. * * Example: * * ```html * {{ data.KEY }} * ```` */ $implicit?: D | null; /** * Data passed to actions panel. * * Example: * * ```html * {{ data.KEY }} * ```` */ data?: D | null; /** * Opened actions panel reference. * * Example: * * ```html * * * * ```` */ actionsPanelRef: KbqActionsPanelRef; }; /** * Selector for actions panel overlay. * * @docs-private */ export declare const KBQ_ACTIONS_PANEL_OVERLAY_SELECTOR = "kbq-actions-panel-overlay"; /** * Service for opening actions panel. */ export declare class KbqActionsPanel implements OnDestroy { private readonly injector; private readonly overlay; private readonly dialog; private readonly defaultConfig; private readonly resizeObserver; /** The reference to the currently opened actions panel. */ private openedActionsPanelRef; ngOnDestroy(): void; /** * Opens actions panel. * * @param componentOrTemplateRef Component to be opened into the actions panel. * @param config Additional configuration options for the actions panel. * @returns A reference to the opened actions panel. */ open(component: ComponentType, config?: KbqActionsPanelConfig): KbqActionsPanelRef; /** * Opens actions panel. * * @param template TemplateRef to be used as the content. * @param config Additional configuration options for the actions panel. * @returns A reference to the opened actions panel. */ open(template: TemplateRef, config?: KbqActionsPanelConfig): KbqActionsPanelRef; /** Closes the currently opened actions panel. */ close(result?: R): void; private openDialog; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }