import { FormRestoreReason, FormRestoreState } from '../mixins/form-associated-mixin.ts'; import { SbbActionBaseElement } from './action-base-element.ts'; declare const SbbButtonLikeBaseElement_base: import('../mixins/constructor.ts').AbstractConstructor & typeof SbbActionBaseElement; /** Button base class. */ export declare abstract class SbbButtonLikeBaseElement extends SbbButtonLikeBaseElement_base { static readonly role: ElementInternals['role']; constructor(); connectedCallback(): void; /** * Prevents scrolling from pressing Space, when the event target is an action element. * Also sets active state. * @param event The origin event. */ private _preventScrollOnSpaceKeydown; private _removeActiveMarker; /** * Dispatches a 'click' PointerEvent if the original keyboard event is a 'Space' press. * As verified with the native button, when 'Space' is pressed, a 'click' event is dispatched * after the 'keyup' event. * @param event The origin event. */ private _dispatchClickEventOnSpaceKeyup; private _dispatchClickEvent; attributeChangedCallback(name: string, old: string | null, value: string | null): void; } /** Button base class. */ export declare abstract class SbbButtonBaseElement extends SbbButtonLikeBaseElement { private readonly _elementsOnWhichEnterPressTriggersSubmit; /** Value of the form element. */ accessor value: string; /** * The type attribute to use for the button. * @default 'button' */ set type(name: 'button' | 'reset' | 'submit'); get type(): 'button' | 'reset' | 'submit'; /** The `
` element to associate the button with. */ set form(value: string); get form(): HTMLFormElement | null; private _formId; constructor(); connectedCallback(): void; disconnectedCallback(): void; private _handleButtonClick; private _requestSubmit; private _formKeyDown; /** * Intentionally empty, as buttons are not targeted by form reset * @internal */ formResetCallback(): void; /** * Intentionally empty, as buttons are not targeted by form restore * @internal */ formStateRestoreCallback(_state: FormRestoreState | null, _reason: FormRestoreReason): void; /** * Intentionally empty, as button does not write its data in form. * The data is only applied on submit button click as submitter of requestSubmit(); * @internal */ protected updateFormValue(): void; } export {}; //# sourceMappingURL=button-base-element.d.ts.map