import { EventEmitter } from "../../stencil-public-runtime"; import { SwirlDialogToggleEvent } from "../../utils"; export type SwirlDialogIntent = "primary" | "critical"; /** * @slot slot - The dialog content * @slot left-controls - Controls displayed on the left side of the default ones */ export declare class SwirlDialog { el: HTMLElement; hideLabel?: boolean; intent?: SwirlDialogIntent; label: string; primaryActionLabel?: string; returnFocusTo?: HTMLElement | string; secondaryActionLabel?: string; dialogClose: EventEmitter; dialogOpen: EventEmitter; primaryAction: EventEmitter; secondaryAction: EventEmitter; toggleDialog: EventEmitter; closing: boolean; opening: boolean; private dialogEl; private temporaryReturnFocusTo; componentDidLoad(): void; disconnectedCallback(): void; private ensureOpening; private setDialogCustomProps; /** * Open the dialog. */ open(returnFocusTo?: HTMLElement | string): Promise; /** * Close the dialog. */ close(): Promise; private onClose; onToggle: (event: ToggleEvent) => void; onKeyDown: (event: KeyboardEvent) => void; private onBackdropClick; private onPrimaryAction; private onSecondaryAction; private customFocusReturn; render(): any; }