import * as i0 from '@angular/core'; import { OnInit } from '@angular/core'; import * as i1 from '@c8y/ngx-components'; import { DocLinkWithLabel, NavigatorService, OptionsService, UserPreferencesService, AlertService, HeaderService, PopoverConfirmButtons, PopoverConfirmComponent } from '@c8y/ngx-components'; import * as i2 from '@angular/cdk/drag-drop'; import { CdkDragDrop } from '@angular/cdk/drag-drop'; import * as i3 from '@angular/forms'; import * as i4 from 'ngx-bootstrap/tooltip'; import { Router } from '@angular/router'; import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal'; import { Observable } from 'rxjs'; import { TranslateService } from '@ngx-translate/core'; import { IconSelectorService } from '@c8y/ngx-components/icon-selector'; interface Bookmark extends Pick { /** * ID for the bookmark, represented as a UUID. */ id: string; /** * Optional property indicating whether a bookmark should be marked for removal. */ markToRemove?: boolean; } declare class BookmarkService { private navigatorService; private options; private router; private translateService; private userPreferencesService; private static readonly DEFAULT_ICON; readonly USER_PREFERENCES_BOOKMARKS_KEY = "bookmarks"; updatedBookmarks: Bookmark[]; constructor(navigatorService: NavigatorService, options: OptionsService, router: Router, translateService: TranslateService, userPreferencesService: UserPreferencesService); updateBookmarksInStorage(newBookmarks: Bookmark[]): Promise; getActiveNodeIcon(): Promise; extractIconName(input: string): string | null; getBookmarks(): Promise; generateRandomID(): string; convertBookmarkLinkToObject(title: string, url: string, icon: string): Bookmark; private findActiveNode; private findActiveInTree; private isNodeActive; private setUserPreferencesBookmarks; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class BookmarksComponent { private document; private alertService; private bookmarkService; private bsModalService; private router; private headerService; drawerOpen$: Observable; bookmarks: Bookmark[]; emptyMessageHeader: "No bookmarks yet"; emptyMessageBody: "Navigate to the desired page and click the \"Add current page\" button. Editing, deleting and reordering are possible by clicking on the cog wheel."; addButtonText: "Add current page"; constructor(document: Document, alertService: AlertService, bookmarkService: BookmarkService, bsModalService: BsModalService, router: Router, headerService: HeaderService); ngOnInit(): Promise; addBookmark(): Promise; editBookmarks(): Promise; openUrl(url: string): void; private getRelativeUrl; private isRelativeUrl; private isSameApp; private toRelativeUrl; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class EditBookmarksComponent implements OnInit { private bsModalRef; private alertService; private bookmarkService; private iconSelector; bookmarks: Bookmark[]; private bookmarksToUpdate; confirmRemoveColumnButtons: PopoverConfirmButtons[]; result: Promise; private _close; constructor(bsModalRef: BsModalRef, alertService: AlertService, bookmarkService: BookmarkService, iconSelector: IconSelectorService); ngOnInit(): void; handleKeyboardEvent(event: KeyboardEvent): void; close(): void; drop(event: CdkDragDrop): Promise; updateBookmark(updatedBookmark: Bookmark, type: keyof Pick): Promise; updateBookmarkProperty(updatedBookmark: Bookmark, type: keyof Pick): Bookmark[]; changeBookmarkIcon(updatedBookmark: Bookmark): Promise; removeBookmark(poConfirm: PopoverConfirmComponent, bookmarkToDelete: Bookmark): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class BookmarksModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { BookmarksComponent, BookmarksModule, EditBookmarksComponent }; //# sourceMappingURL=index.d.ts.map