import * as _rdlabo_ionic_angular_photo_editor from '@rdlabo/ionic-angular-photo-editor'; import * as _angular_core from '@angular/core'; import { OnInit, OnDestroy, ElementRef } from '@angular/core'; import { BooleanInput, NumberInput } from '@angular/cdk/coercion'; import { ViewDidEnter, ViewDidLeave, ModalController, RangeCustomEvent } from '@ionic/angular/standalone'; import { Subscription } from 'rxjs'; import { SwiperContainer } from 'swiper/element'; interface IFilter { name: string; type: string; option: any; data: string; width: number; height: number; } interface ISize { width: number; height: number; } interface IDictionaryForEditor { save: string; crop: string; filter: string; brightness: string; original: string; invert: string; sepia: string; vintage: string; blur: string; grayscale: string; sharpen: string; emboss: string; } interface IFilterPreset { name: string; type: string; option: any; } interface IPhotoEditorDismiss { value: string; } interface IPhotoViewerDismiss { delete: { index: number; value: string; }; } interface IDictionaryForViewer { delete: string; } interface IDictionaryForService { camera: string; album: string; cancel: string; } /** Props for presenting {@link PhotoViewerPage} via Ionic Modal `componentProps`. */ interface PhotoViewerProps { imageUrls?: string[]; index?: number; isCircle?: boolean; enableDelete?: boolean; enableFooterSafeArea?: boolean; labels?: Partial; } /** Props for presenting {@link PhotoEditorPage} via Ionic Modal `componentProps`. */ interface PhotoEditorProps { requireSquare?: boolean; value: string; labels?: Partial; } declare class PhotoEditorPage implements OnInit, OnDestroy, ViewDidEnter, ViewDidLeave { readonly modalCtrl: ModalController; protected readonly dictionary: _angular_core.WritableSignal; readonly requireSquare: _angular_core.InputSignalWithTransform; readonly labels: _angular_core.InputSignal | undefined>; readonly setLabels: _angular_core.EffectRef; readonly value: _angular_core.InputSignal; readonly editorRef: _angular_core.Signal>; readonly ionContent: _angular_core.Signal>; readonly filters: _angular_core.WritableSignal; readonly footerMenu: _angular_core.WritableSignal<"menu" | "filter" | "crop" | "brightness">; readonly currentCrop: _angular_core.WritableSignal<"1" | "cover" | "16/9" | "auto">; readonly currentRotate: _angular_core.WritableSignal; readonly photoCrop: _angular_core.WritableSignal; readonly isCropped: _angular_core.WritableSignal; private readonly adoptFilter; protected readonly filterPreset: _angular_core.Signal<_rdlabo_ionic_angular_photo_editor.IFilterPreset[]>; private readonly footerMenu$; private readonly initSubscription$; private readonly filterImageSize; private editorInstance; private canvasContainerObserver; constructor(); ngOnInit(): void; ngOnDestroy(): void; ionViewDidEnter(): Promise; ionViewDidLeave(): void; changeCrop(crop: 'cover' | '16/9' | '1' | 'auto'): void; rotate(): Promise; closeCrop(type: 'cancel' | 'apply'): Promise; changeRange(event: RangeCustomEvent): Promise; imageSave(): void; private initializeFilterMenu; filterImage(filter: IFilter): Promise; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class PhotoViewerPage implements OnInit, OnDestroy { readonly imageUrls: _angular_core.InputSignal; readonly index: _angular_core.InputSignalWithTransform; readonly isCircle: _angular_core.InputSignalWithTransform; readonly enableDelete: _angular_core.InputSignalWithTransform; readonly enableFooterSafeArea: _angular_core.InputSignalWithTransform; readonly labels: _angular_core.InputSignal | undefined>; readonly setLabels: _angular_core.EffectRef; readonly swiper: _angular_core.Signal>; protected readonly dictionary: _angular_core.WritableSignal; readonly watchSwipe$: Subscription; readonly modalCtrl: ModalController; private readonly el; constructor(); ngOnInit(): Promise; ngOnDestroy(): void; remove(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class PhotoFileService { private readonly $photoMaxSize; private readonly actionSheetCtrl; private readonly platform; private readonly dictionary; set photoMaxSize(value: number); set labels(d: IDictionaryForService); loadPhoto(limit: number): Promise; private getPictureFromBrowser; private loadPhotoFromFilePath; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } export { PhotoEditorPage, PhotoFileService, PhotoViewerPage }; export type { IDictionaryForEditor, IDictionaryForService, IDictionaryForViewer, IFilter, IFilterPreset, IPhotoEditorDismiss, IPhotoViewerDismiss, ISize, PhotoEditorProps, PhotoViewerProps };