import { TemplateRef } from '@angular/core'; import { PassThroughOption, PassThrough } from 'primeng/api'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link Toolbar.pt} * @group Interface */ interface ToolbarPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the start's DOM element. */ start?: PassThroughOption; /** * Used to pass attributes to the center's DOM element. */ center?: PassThroughOption; /** * Used to pass attributes to the right's DOM element. */ end?: PassThroughOption; } /** * Defines valid pass-through options in Toolbar component. * @see {@link ToolbarPassThroughOptions} * * @template I Type of instance. */ type ToolbarPassThrough = PassThrough>; /** * Defines valid templates in Toolbar. * @group Templates */ interface ToolbarTemplates { /** * Custom start template. */ start(): TemplateRef; /** * Custom end template. */ end(): TemplateRef; /** * Custom center template. */ center(): TemplateRef; } export type { ToolbarPassThrough, ToolbarPassThroughOptions, ToolbarTemplates };