import { TemplateRef } from '@angular/core'; import { PassThroughOption, PassThrough } from 'primeng/api'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link ImageCompare.pt} * @group Interface */ interface ImageComparePassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the slider's DOM element. */ slider?: PassThroughOption; } /** * Defines valid pass-through options in ImageCompare. * @see {@link ImageComparePassThroughOptions} * * @template I Type of instance. */ type ImageComparePassThrough = PassThrough>; /** * Defines valid templates in ImageCompare. * @group Templates */ interface ImageCompareTemplates { /** * Custom left side template. */ left(): TemplateRef; /** * Custom right side template. */ right(): TemplateRef; } export type { ImageComparePassThrough, ImageComparePassThroughOptions, ImageCompareTemplates };