import { TemplateRef } from '@angular/core'; import { PassThroughOption, PassThrough } from 'primeng/api'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link Card.pt} * @group Interface */ interface CardPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the header's DOM element. */ header?: PassThroughOption; /** * Used to pass attributes to the body's DOM element. */ body?: PassThroughOption; /** * Used to pass attributes to the subtitle's DOM element. */ subtitle?: PassThroughOption; /** * Used to pass attributes to the title's DOM element. */ title?: PassThroughOption; /** * Used to pass attributes to the content's DOM element. */ content?: PassThroughOption; /** * Used to pass attributes to the footer's DOM element. */ footer?: PassThroughOption; } /** * Defines valid pass-through options in Card component. * @see {@link CardPassThroughOptions} * * @template I Type of instance. */ type CardPassThrough = PassThrough>; /** * Defines valid templates in Card. * @group Templates */ interface CardTemplates { /** * Custom header template. */ header(): TemplateRef; /** * Custom title template. */ title(): TemplateRef; /** * Custom subtitle template. */ subtitle(): TemplateRef; /** * Custom content template. */ content(): TemplateRef; /** * Custom footer template. */ footer(): TemplateRef; } export type { CardPassThrough, CardPassThroughOptions, CardTemplates };