import { EventEmitter } from '../../stencil-public-runtime'; import { ButtonType } from '../../utils/constants'; import { type IconName } from '../nv-icon/nv-icons'; /** * @slot default - Custom content for the drawer footer. When provided, the default buttons will not be rendered. */ export declare class NvDrawerfooter { internals: ElementInternals; el: HTMLNvDrawerfooterElement; private primaryButtonRef; /****************************************************************************/ /** * Disables the primary button, preventing user interaction. */ readonly disabled: boolean; /** * Controls the visibility of the cancel button. When true, the cancel button is * hidden. */ readonly undismissable: boolean; /** * Sets the leading icon for the primary button. * @icon */ readonly leadingIcon?: `${IconName}` | null; /** * Sets the trailing icon for the primary button. * @icon */ readonly trailingIcon?: `${IconName}` | null; /** * Sets the danger state for the primary button. */ readonly danger: boolean; /** * Sets the label for the cancel button. */ readonly cancelLabel: string | null; /** * Sets the label for the primary button. */ readonly primaryLabel: string | null; /** * Sets the type of the primary button. If using a form, this will default to * 'submit' if nothing passed. */ readonly primaryButtonType: `${ButtonType}`; /** * A form inside the drawer can be submitted through the drawer footer by * giving the form an id and passing that id to the form attribute. */ readonly form?: string | null; /****************************************************************************/ /** * Emitted when the cancel button is clicked. This will close the drawer. */ drawerCanceled: EventEmitter; /** * Emitted when the primary button is clicked. This allows to handle the * primary action and potential data capture before closing the drawer. */ drawerPrimaryClicked: EventEmitter; /****************************************************************************/ /** * Handles the primary action when the primary button is clicked. * @param {Event} event - The click event. */ private handlePrimary; /** * Handles the cancel action when the cancel button is clicked. This will close the drawer. * @param {Event} event - The click event. */ private handleCancel; /****************************************************************************/ componentDidRender(): void; /****************************************************************************/ render(): any; }