import { ShowValidationErrorParameters, ValidationHelper, WithValidation } from "jb-validation"; import { JBFormInputStandards } from "jb-form"; import { EventTypeWithTarget } from "jb-core"; //#region modules/jb-switch/web-component/lib/types.d.ts type ElementsObject = { componentWrapper: HTMLButtonElement; trueText: HTMLSpanElement; falseText: HTMLSpanElement; switch: SVGElement; triggerCircleBar: SVGCircleElement; triggerButton: SVGGElement; }; type ValidationValue = boolean; type JBSwitchEventType = EventTypeWithTarget; //#endregion //#region modules/jb-switch/web-component/lib/jb-switch.d.ts declare class JBSwitchWebComponent extends HTMLElement implements WithValidation, JBFormInputStandards { #private; static get formAssociated(): boolean; elements: ElementsObject; get value(): boolean; set value(value: boolean); get isLoading(): boolean; get form(): HTMLFormElement | null; set isLoading(value: boolean); get validation(): ValidationHelper; get name(): string; set name(value: string); /** * Default and reset value. It initializes `value` until the live value is explicitly set. */ get initialValue(): boolean; set initialValue(value: boolean); formResetCallback(): void; formDisabledCallback(disabled: boolean): void; get isDirty(): boolean; set required(value: boolean); get required(): boolean; isAutoValidationDisabled: boolean; get disabled(): boolean; set disabled(value: boolean); constructor(); connectedCallback(): void; callOnLoadEvent(): void; callOnInitEvent(): void; initWebComponent(): void; registerEventListener(): void; initProp(): void; static get observedAttributes(): string[]; attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void; onAttributeChange(name: string, value: string | null): void; /** * @public */ focus(): void; showValidationError(params: ShowValidationErrorParameters): void; clearValidationError(): void; get validationMessage(): string; checkValidity(): boolean; reportValidity(): boolean; } //#endregion export { ElementsObject, JBSwitchEventType, JBSwitchWebComponent, ValidationValue }; //# sourceMappingURL=jb-switch.d.ts.map