import { SkfElement } from './skf-element.js'; interface OptionsOverride { bubbles?: boolean; composed?: boolean; cancelable?: boolean; } /** * Then in your form component: * * formDisabledCallback(disabled) { * super.formDisabledCallback(disabled); * console.log(`Disabled: ${this.disabled}`); * } */ export declare class FormBase extends SkfElement { static formAssociated: boolean; protected _disabled: boolean; _internals: ElementInternals; protected _required: boolean; protected _pristine: boolean; protected validationError: string; protected customErrorDisplay: boolean; protected pristine: boolean; protected validateOnChange: boolean; static shadowRootOptions: { delegatesFocus: boolean; mode: ShadowRootMode; serializable?: boolean; slotAssignment?: SlotAssignmentMode; }; constructor(); connectedCallback(): void; disconnectedCallback(): void; /** @internal */ _dispatchResetEvent: () => void; /** If true, sets disabled state */ set disabled(isDisabled: boolean); get disabled(): boolean; set required(isRequired: boolean); get required(): boolean; set nativeValidation(nativeValidation: boolean); get nativeValidation(): boolean; get form(): HTMLFormElement | null; get validity(): ValidityState; get validationMessage(): string; get willValidate(): boolean; setValidity(value: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; setFormValue(value: string | null): void; /** emits a change event */ checkValidity(): boolean; /** emits a change event, triggers native UI popup and returns false if the form is invalid */ reportValidity(): boolean; formDisabledCallback(disabled: boolean): void; /** * Dispatches a synthetic/custom event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. * * Options object: * bubbles: true: This option allows the event to bubble up through the DOM. * composed: true: This option allows the event to pierce the shadow DOM boundary. * cancelable: false: This option indicates that the event cannot be canceled. * * @param event * @returns */ emitEvent(event: string, optionsOverride?: OptionsOverride): boolean; } export {};