import { OnInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
/**
 * 开关
 *
 * <example-url>https://stackblitz.com/edit/np-switch-sample?embed=1&file=src/app/app.component.html</example-url>
 */
export declare class NpSwitch implements OnInit, ControlValueAccessor {
    private cdf;
    val: string | boolean;
    /**标签 */
    label: string;
    /**开关为打开状态时的值，默认为true */
    trueValue: any;
    /**开关为关闭状态时的值，默认为false */
    falseValue: any;
    /**是否禁用 */
    isDisabled: boolean;
    /**是否必填 - 必填则有红色*号在标签前面；否则没有 */
    isRequired: boolean;
    /**标签的方向，left在开关左方，right在开关右方 */
    direction: 'left' | 'right';
    /**开关状态发生改变时触发事件 */
    inputModelChange: EventEmitter<{}>;
    readonly ischecked: boolean;
    private emitChange;
    constructor(cdf: ChangeDetectorRef);
    ngOnInit(): void;
    onChange(e: any): void;
    writeValue(obj: any): void;
    registerOnChange(fn: any): void;
    registerOnTouched(fn: any): void;
}
