import { ComponentType, Overlay } from '@angular/cdk/overlay'; import { ElementRef, InjectionToken, Injector, TemplateRef } from '@angular/core'; import { KbqSidepanelConfig, KbqSidepanelService } from '@koobiq/components/sidepanel'; import { Observable } from 'rxjs'; import { IcSidepanelConfig, IcSidepanelRef } from '../types'; import * as i0 from "@angular/core"; export declare const IC_SIDEPANEL_DEFAULT_CONFIG: InjectionToken; export declare class IcSidepanelService extends KbqSidepanelService { #private; constructor(overlay: Overlay, injector: Injector, defaultOptions: KbqSidepanelConfig, parentSidepanelService: KbqSidepanelService); /** * Создает компонент sidepanel * @param templateRef TemplateRef, компонента. * @param config Sidepanel конфигурация открытия. * @returns KbqSidepanelRef - созданная Sidepanel. */ open(templateRef: TemplateRef | ComponentType, config?: IcSidepanelConfig): IcSidepanelRef; get openedSidepanels(): IcSidepanelRef[]; getSidepanelAnimationChanged$(): Observable; /** * Частично скрывает Sidepanel по id * @param id ID для поиска Sidepanel. */ collapsePanelById(id: string): void; /** * Раскрывает Sidepanel по id * @param id ID для поиска Sidepanel. */ expandPanelById(id: string): void; /** * Частично скрывает все открытые Sidepanels */ collapsePanels(): void; /** * Раскрывает все открытые Sidepanels */ expandPanels(): void; /** * Finds the closest KbqSidepanelRef to an element by looking at the DOM. * @param element Element relative to which to look for a sidepanel. * @param openSidepanels References to the currently-open sidepanels. */ getClosestSidepanel(element: ElementRef, openSidepanels?: IcSidepanelRef[]): IcSidepanelRef | null | undefined; private changeSidepanelHeight; /** * Применяет анимацию для Sidepanel * @param id ID для поиска Sidepanel. * @param transformValue значение, с которым применяется анимация */ private animatePanel; /** * Применяет анимацию для всех Sidepanels * @param transformValue значение, с которым применяется анимация */ private animatePanels; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }