import { OpenerComponent } from "../common"; import { DuetLangObject } from "./language-utils"; type ariaPopup = "true" | "menu" | "listbox" | "tree" | "grid" | "dialog"; interface A11yLabel { element: HTMLElement; accessibleLabel?: string; external?: boolean; accessibleLabelExternal?: DuetLangObject | string; accessibleLabelDownload?: DuetLangObject | string; download?: string; } export declare function getAccessibleLinkLabel(component: A11yLabel): string; /** * An element that controls open/close state of a Duet component can itself be either a Duet component or an HTML element, * this helper handles the setting of the relevant attributes accordingly. * * @param el Duet component or HTML element that is used for controlling the popup * @param expanded is the controlled element open * @param popup The type of the popup, defaults to "true" which equals to "menu" */ export declare function setOpenerExpanded(el: OpenerComponent | HTMLElement, expanded: boolean, popup?: ariaPopup): void; export {};