import { DuetColor, DuetHeadingLevel, DuetMargin, DuetTheme } from "../../common-types"; import { ThemeableComponent } from "../../common/themeable-component"; /** * @slot pre-heading - Slot for pre-heading content. * @slot heading - Slot for heading content. Only span should be used in this slot. * @slot description - Slot for description content. Only span should be used in this slot. * @slot action - Slot for action button. */ export declare class DuetPromoCard implements ThemeableComponent { private aOrDivElement; private hasPreHeadingSlot; private hasHeadingSlot; private hasDescriptionSlot; private hasActionSlot; element: HTMLElement; /** * Theme. */ theme: DuetTheme; /** * Controls the margin of the component. */ margin: DuetMargin; /** * Background color. */ backgroundColor: DuetColor | ""; /** * Text color. */ textColor: DuetColor; /** * Image. Example image is 512x341; */ image: string; /** * Alt attribute text for the image. If not provided, image is assigned presentation role. */ imageAlt: string; /** * The actual heading level used in the HTML markup. */ headingLevel: DuetHeadingLevel; /** * A destination to link to, rendered in the href attribute of a link. */ url: string; /** * Component lifecycle events. */ componentWillLoad(): void; /** * Sets focus on underlying a element. * Available only when url attribute is used. * Use this method instead of the native `focus()`. */ setFocus(options?: FocusOptions): Promise; /** * render() function * Always the last one of the class. */ render(): any; }