import { ImageImageTemplateContext, ImageLoading, ImagePassThrough, ImagePreviewTemplateContext } from "primeng/types/image"; import * as i0 from "@angular/core"; import { ElementRef, TemplateRef } from "@angular/core"; import { SafeUrl } from "@angular/platform-browser"; import { MotionEvent, MotionOptions } from "@primeuix/motion"; import { BaseComponent } from "primeng/basecomponent"; import * as i1 from "primeng/bind"; import { Bind } from "primeng/bind"; import { AppendTo, CSSProperties } from "primeng/types/shared"; import { Nullable } from "primeng/ts-helpers"; import { BaseStyle } from "primeng/base"; import * as i2 from "primeng/api"; export * from "primeng/types/image"; export declare class ImageStyle extends BaseStyle { name: string; style: string; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-image-preview': any; })[]; previewMask: string; previewIcon: string; mask: string; toolbar: string; rotateRightButton: string; rotateLeftButton: string; zoomOutButton: ({ instance }: { instance: any; }) => (string | { 'p-disabled': any; })[]; zoomInButton: ({ instance }: { instance: any; }) => (string | { 'p-disabled': any; })[]; closeButton: string; original: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * Displays an image with preview and tranformation options. For multiple image, see Galleria. * * [Live Demo](https://www.primeng.org/image/) * * @module imagestyle * */ export declare enum ImageClasses { /** * Class name of the root element */ root = "p-image", /** * Class name of the preview mask element */ previewMask = "p-image-preview-mask", /** * Class name of the preview icon element */ previewIcon = "p-image-preview-icon", /** * Class name of the mask element */ mask = "p-image-mask", /** * Class name of the toolbar element */ toolbar = "p-image-toolbar", /** * Class name of the rotate right button element */ rotateRightButton = "p-image-rotate-right-button", /** * Class name of the rotate left button element */ rotateLeftButton = "p-image-rotate-left-button", /** * Class name of the zoom out button element */ zoomOutButton = "p-image-zoom-out-button", /** * Class name of the zoom in button element */ zoomInButton = "p-image-zoom-in-button", /** * Class name of the close button element */ closeButton = "p-image-close-button", /** * Class name of the original element */ original = "p-image-original" } /** * Displays an image with preview and tranformation options. * @group Components * @deprecated Use Gallery component instead. */ export declare class Image extends BaseComponent { componentName: string; constructor(); $pcImage: Image | undefined; bindDirectiveInstance: Bind; /** * Style class of the image element. * @group Props */ imageClass: import("@angular/core").InputSignal; /** * Inline style of the image element. * @group Props */ imageStyle: import("@angular/core").InputSignal; /** * The source path for the main image. * @group Props */ src: import("@angular/core").InputSignal; /** * The srcset definition for the main image. * @group Props */ srcSet: import("@angular/core").InputSignal; /** * The sizes definition for the main image. * @group Props */ sizes: import("@angular/core").InputSignal; /** * The source path for the preview image. * @group Props */ previewImageSrc: import("@angular/core").InputSignal; /** * The srcset definition for the preview image. * @group Props */ previewImageSrcSet: import("@angular/core").InputSignal; /** * The sizes definition for the preview image. * @group Props */ previewImageSizes: import("@angular/core").InputSignal; /** * Attribute of the preview image element. * @group Props */ alt: import("@angular/core").InputSignal; /** * Attribute of the image element. * @group Props */ width: import("@angular/core").InputSignal; /** * Attribute of the image element. * @group Props */ height: import("@angular/core").InputSignal; /** * Attribute of the image element. * @group Props */ loading: import("@angular/core").InputSignal; /** * Controls the preview functionality. * @group Props */ preview: import("@angular/core").InputSignalWithTransform; /** * Enter animation class name of modal. * @defaultValue 'p-modal-enter' * @group Props */ modalEnterAnimation: import("@angular/core").InputSignal; /** * Leave animation class name of modal. * @defaultValue 'p-modal-leave' * @group Props */ modalLeaveAnimation: import("@angular/core").InputSignal; /** * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). * @defaultValue 'self' * @group Props */ appendTo: import("@angular/core").InputSignal; /** * The motion options for the mask. * @group Props */ maskMotionOptions: import("@angular/core").InputSignal; computedMaskMotionOptions: import("@angular/core").Signal; /** * The motion options. * @group Props */ motionOptions: import("@angular/core").InputSignal; computedMotionOptions: import("@angular/core").Signal; /** * Triggered when the preview overlay is shown. * @group Emits */ onShow: import("@angular/core").OutputEmitterRef; /** * Triggered when the preview overlay is hidden. * @group Emits */ onHide: import("@angular/core").OutputEmitterRef; /** * This event is triggered if an error occurs while loading an image file. * @param {Event} event - Browser event. * @group Emits */ onImageError: import("@angular/core").OutputEmitterRef; mask: import("@angular/core").Signal | undefined>; previewButton: import("@angular/core").Signal | undefined>; closeButton: import("@angular/core").Signal | undefined>; /** * Custom indicator template. * @group Templates */ indicatorTemplate: import("@angular/core").Signal | undefined>; /** * Custom rotate right icon template. * @group Templates */ rotateRightIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom rotate left icon template. * @group Templates */ rotateLeftIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom zoom out icon template. * @group Templates */ zoomOutIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom zoom in icon template. * @group Templates */ zoomInIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom close icon template. * @group Templates */ closeIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom preview template. * @group Templates */ previewTemplate: import("@angular/core").Signal | undefined>; /** * Custom image template. * @group Templates */ imageTemplate: import("@angular/core").Signal | undefined>; renderMask: import("@angular/core").WritableSignal; renderPreview: import("@angular/core").WritableSignal; maskVisible: import("@angular/core").WritableSignal; previewVisible: boolean; rotate: import("@angular/core").WritableSignal; scale: import("@angular/core").WritableSignal; previewClick: boolean; container: Nullable; wrapper: Nullable; _componentStyle: ImageStyle; $appendTo: import("@angular/core").Signal; private zoomSettings; private get aria(); isZoomOutDisabled: import("@angular/core").Signal; isZoomInDisabled: import("@angular/core").Signal; previewMaskStyle: import("@angular/core").Signal<{ height: string; width: string; }>; imageTemplateContext(): { errorCallback: any; }; previewTemplateContext(): ImagePreviewTemplateContext; onAfterViewChecked(): void; onImageClick(): void; onMaskClick(): void; onMaskKeydown(event: KeyboardEvent): void; onPreviewImageClick(): void; rotateRight(): void; rotateLeft(): void; zoomIn(): void; zoomOut(): void; onAnimationStart(event: MotionEvent): void; onBeforeLeave(): void; onAnimationEnd(): void; onMaskAfterLeave(): void; moveOnTop(): void; appendContainer(): void; imagePreviewStyle(): { transform: string; }; zoomImageAriaLabel(): string | undefined; handleToolbarClick(event: MouseEvent): void; closePreview(): void; imageError(event: Event): void; rightAriaLabel(): string | undefined; leftAriaLabel(): string | undefined; zoomInAriaLabel(): string | undefined; zoomOutAriaLabel(): string | undefined; closeAriaLabel(): string | undefined; onKeydownHandler(): void; onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class ImageModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }