import { EventEmitter, OnInit } from '@angular/core'; import { SafeResourceUrl } from '@angular/platform-browser'; import { ID } from '../core'; import { SCTableCondition } from '../sc-table/sc-table.component'; import * as i0 from "@angular/core"; export interface SCImage { id?: ID; url?: string; image?: string | Blob | File | SafeResourceUrl; description?: string; is_favorite?: boolean; tags?: SCImageTag[]; createdAt?: Date | string; [name: string]: any; } export declare type SCImageViewerActionIndex = 'DEFAULT' | 'DOWNLOAD' | 'FAVOURITE' | 'DELETE' | 'TAG'; export interface SCImageTag { name: string; id: ID; selected?: boolean; color?: 'primary' | 'danger' | 'warning' | 'success'; hasImages?: boolean; } export interface SCImageViewerImageData { images: SCImage[]; index: number; actions?: SCImageViewerActionButton[]; disableEditDescription?: boolean; } export interface SCImageViewerAction { event: MouseEvent; action: SCImageViewerActionButton; image: SCImage; } export interface SCImageViewerActionButton { index: string; type?: SCImageViewerActionIndex; label?: string; color?: string; icon?: string; matIcon?: string; fontIcon?: string; conditions?: SCTableCondition[]; disabled?: boolean; cssClass?: string; dropdown?: SCImageViewerActionButton[]; } export declare class ScImageViewerComponent implements OnInit { imagesData: SCImageViewerImageData; closePanel: EventEmitter; actionClicked: EventEmitter; desctiptionChanged: EventEmitter; private _index; isEditMode: boolean; editedText: string; currentLightboxImage: SCImage; actions: SCImageViewerActionButton[]; renderedActions: SCImageViewerActionButton[]; disableEditDescription: boolean; get index(): number; set index(index: number); constructor(imagesData: SCImageViewerImageData); onKeydownHandler(event: KeyboardEvent): void; ngOnInit(): void; handleActionClicked(event: MouseEvent, action: SCImageViewerActionButton, image: SCImage): void; handleDesctiptionChanged(image: SCImage): void; setEditText(event: any, edit: boolean): void; saveEdit(event: any, image: any): void; close(): void; next(): void; prev(): void; renderActions(actions?: SCImageViewerActionButton[]): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }