import { EventEmitter } from '../../stencil-public-runtime'; import { POSITION } from '../../common/interfaces/ui'; import { ICustomGoogleAnalyticsConfig } from '@progleasing/grit-universal-analytics'; export declare class GritSwitch { host: HTMLGritWcSwitchElement; protected _on: boolean; /** Sets the style of the switch to disable and disables it's actions. */ disabled: boolean; /** Sets where the label will be rendered. */ labelPosition: POSITION; /** If true the switch will be rendered in its ON state. */ checked: boolean; name: string; /** * It's the custom object event to be passed into the `GoogleAnalytics.getInstance().pushCustomEvent()` function. */ analyticsCustomObj: ICustomGoogleAnalyticsConfig; /** * If it is set to false, no event will be pushed into Google Analytics. */ analyticsEnabled: boolean; /** * If it is set to true, no personally identifiable information will be pushed into Google Analytics. */ pii: boolean; /** * Sets the values to the label */ labels: { labelOn: string; labelOff: string; }; /** * If it is set to true, it will show the on and off labels */ showLabels: boolean; onHandler(newValue: boolean): void; /** * Event that fires when the switch changes state returning * the current state. */ toggled: EventEmitter; onSpaceBarToggle(ev: KeyboardEvent): void; componentWillLoad(): void; componentDidLoad(): void; private maxLabelWidth; onClick(): void; private eventsDispatcher; render(): any; }