import { EventEmitter } from '../../stencil-public-runtime';
import { AutocompleteTypes, IconType, TextFieldTypes } from '../../interface.js';
import { InputChangeEventDetail, InputInputEventDetail } from './input-interface.js';
export declare class CpslInput {
    private nativeInput?;
    el: HTMLCpslInputElement;
    private inputId;
    /**
     * The value of the input when the input is focused.
     */
    private focusedValue?;
    hasFocus: boolean;
    /**
     * The tag for the input.
     * Options are: `"input"`, `"textarea".
     * Default is: `"input"`.
     */
    as?: 'input' | 'textarea';
    /**
     * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
     * Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
     */
    autocapitalize: string;
    /**
     * Indicates whether the value of the control can be automatically completed by the browser.
     */
    autocomplete: AutocompleteTypes;
    /**
     * Whether auto correction should be enabled when the user is entering/editing the text value.
     */
    autocorrect: 'on' | 'off';
    /**
     * Whether to disable auto disabling of the slotted components.
     */
    noAutoDisable: boolean;
    /**
     * Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element.
     *
     * This may not be sufficient for the element to be focused on page load.
     */
    autofocus: boolean;
    /**
     * If `true`, the input's entire contents will be selected on focus.
     */
    autoselect: boolean;
    /**
     * If `true`, the user cannot interact with the input.
     */
    disabled: boolean;
    /**
     * If `true`, the input primary color will use the contrast value, not the primary text value.
     */
    contrastText: boolean;
    /**
     * A hint to the browser for which enter key to display.
     * Possible values: `"enter"`, `"done"`, `"go"`, `"next"`,
     * `"previous"`, `"search"`, and `"send"`.
     */
    enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
    /**
     * Error text to show below the input. If this is provided the input will enter an error state.
     */
    errorText?: string;
    /**
     * Update the native input size to match the text content
     */
    fitContent: boolean;
    /**
     * Mask string to apply to the input.
     */
    mask?: string;
    /**
     * Whether the input is for a phone number.
     */
    isPhone?: boolean;
    /**
     * Helper text to show below the input. If `"errorText"` is provided that will take precedence.
     */
    helperText?: string;
    /**
     * A hint to the browser for which keyboard to display.
     * Possible values: `"none"`, `"text"`, `"tel"`, `"url"`,
     * `"email"`, `"numeric"`, `"decimal"`, and `"search"`.
     */
    inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
    /**
     * The label for the input.
     */
    label?: string;
    /**
     * The maximum value, which must not be less than its minimum (min attribute) value.
     */
    max?: string | number;
    /**
     * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter.
     */
    maxlength?: number;
    /**
     * The minimum value, which must not be greater than its maximum (max attribute) value.
     */
    min?: string | number;
    /**
     * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter.
     */
    minlength?: number;
    /**
     * If `true`, the user can enter more than one value. This attribute applies when the type attribute is set to `"email"`, otherwise it is ignored.
     */
    multiple?: boolean;
    /**
     * The name of the control, which is submitted with the form data.
     */
    name: string;
    /**
     * A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `"text"`, `"search"`, `"tel"`, `"url"`, `"email"`, `"date"`, or `"password"`, otherwise it is ignored. When the type attribute is `"date"`, `pattern` will only be used in browsers that do not support the `"date"` input type natively. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date for more information.
     */
    pattern?: string;
    /**
     * Instructional text that shows before the input has a value.
     * This property applies only when the `type` property is set to `"email"`,
     * `"number"`, `"password"`, `"search"`, `"tel"`, `"text"`, or `"url"`, otherwise it is ignored.
     */
    placeholder?: string;
    /**
     * If `true`, the user cannot modify the value.
     */
    readonly: boolean;
    /**
     * If `true`, the user must fill in a value before submitting a form.
     */
    required: boolean;
    /**
     * Number of rows for the textarea
     */
    rows: number;
    /**
     * If `true`, the label will display an "optional" tag.
     */
    showOptionalLabel: boolean;
    /**
     * If `true`, the element will have its spelling and grammar checked.
     */
    spellcheck: boolean;
    /**
     * The external source of the icon at the start of the input. If both `startIcon` and `startIconSrc` are provided, `startIcon` will be used.
     */
    startIconSrc?: string;
    /**
     * The name of the icon at the start of the input. If both `startIcon` and `startIconSrc` are provided, `startIcon` will be used.
     */
    startIcon?: IconType;
    /**
     * Works with the min and max attributes to limit the increments at which a value can be set.
     * Possible values are: `"any"` or a positive floating point number.
     */
    step?: string;
    /**
     * The type of control to display. The default type is `text`.
     */
    type: TextFieldTypes;
    /**
     * The value of the controlled input.
     */
    value?: string;
    /**
     * The `cpslInput` event is fired each time the user modifies the input's value.
     * Unlike the `cpslChange` event, the `cpslInput` event is fired for each alteration
     * to the input's value. This typically happens for each keystroke as the user types.
     *
     * For elements that accept text input (`type=text`, `type=tel`, etc.), the interface
     * is [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others,
     * the interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If
     * the input is cleared on edit, the type is `null`.
     */
    cpslInput: EventEmitter<InputInputEventDetail>;
    /**
     * The `cpslChange` event is fired when the user modifies the input's value.
     * Unlike the `cpslInput` event, the `cpslChange` event is only fired when changes
     * are committed, not as the user types.
     *
     * Depending on the way the users interacts with the element, the `cpslChange`
     * event fires at a different moment:
     * - When the element loses focus after its value has changed: for elements
     * where the user's interaction is typing.
     */
    cpslChange: EventEmitter<InputChangeEventDetail>;
    /**
     * Emitted when the input loses focus.
     */
    cpslBlur: EventEmitter<FocusEvent>;
    /**
     * Emitted when the input has focus.
     */
    cpslFocus: EventEmitter<FocusEvent>;
    /**
     * Emitted when something has been paste into the input.
     */
    cpslPaste: EventEmitter<ClipboardEvent>;
    handleDisable(): void;
    handleSetupMask(): void;
    handleValueChange(): void;
    componentDidLoad(): void;
    private disableSlots;
    private enableSlots;
    private initButtons;
    /**
     * Emits a `cpslInput` event.
     */
    private emitInputChange;
    /**
     * Emits a `cpslChange` event.
     *
     * This API should be called for user committed changes.
     * This API should not be used for external value changes.
     */
    private emitValueChange;
    private onInput;
    private onChange;
    private onBlur;
    private onFocus;
    private onPaste;
    private focusInput;
    private get startEl();
    private get endEl();
    render(): any;
}
