import { TemplateRef } from '@angular/core'; import { PassThroughOption, PassThrough } from 'primeng/api'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link ProgressBar.pt} * @group Interface */ interface ProgressBarPassThroughOptions { /** * Used to pass attributes to the host's DOM element. */ host?: PassThroughOption; /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the value's DOM element. */ value?: PassThroughOption; /** * Used to pass attributes to the label's DOM element. */ label?: PassThroughOption; } /** * Defines valid pass-through options in ProgressBar. * @see {@link ProgressBarPassThroughOptions} * * @template I Type of instance. */ type ProgressBarPassThrough = PassThrough>; /** * Custom content template context. * @group Interface */ interface ProgressBarContentTemplateContext { /** * Value of the progressbar. */ $implicit: number | undefined; } /** * Defines valid templates in ProgressBar. * @group Templates */ interface ProgressBarTemplates { /** * Custom template of content. * @param {ProgressBarContentTemplateContext} context - content context. */ content(context: ProgressBarContentTemplateContext): TemplateRef; } export type { ProgressBarContentTemplateContext, ProgressBarPassThrough, ProgressBarPassThroughOptions, ProgressBarTemplates };