import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
import type { InputChangeEventDetail } from './input-interface';
import type { ControlValidity, ControlValidityEventDetail, TextFieldTypes } from '../../types/shared';
import type { DateDisabledPredicate } from '../date-picker/date-picker-interface';
import type { NanoDatePicker } from '../date-picker/date-picker';
/**
 * Inputs collect text data from the user.
 *
 * @status stable
 * @version 1.0.0
 *
 * @slot start - suitable for inline action buttons or icons that may add extra contextual information
 * @slot end - suitable for inline action buttons or icons that may add extra contextual information
 * @slot value-start - similar to 'start', however clicking elements using this slot will activate the input control. This would be suitable to show a secondary 'value' for context or to show a dropdown arrow if using a datalist
 * @slot value-end - similar to 'end', however clicking elements using this slot will activate the input control. This would be suitable to show a secondary 'value' for context or to show a dropdown arrow if using a datalist
 * @slot label - if you do not set a label attribute, you can use this slot for more complex markup
 * @slot helper - helper text to accompany the form field underneath.
 * @slot helper-end - helper text to accompany the form field on the side.
 * @slot - can be used with a `nano-datalist`. See the `nano-datalist` docs for more information
 */
export declare class Input implements ComponentInterface {
    private nativeInput?;
    private inputId;
    private didBlurAfterEdit;
    private rtl;
    private mo?;
    private charCount;
    private hasRendered;
    private pickerDropdown?;
    private picker?;
    private pickerCloseBtn?;
    private shouldValidate;
    private _nativeInputWrap;
    private get nativeInputWrap();
    private set nativeInputWrap(value);
    constructor();
    hasFocus: boolean;
    hasLabelSlot: boolean;
    hasHelperSlot: boolean;
    hasHelperEndSlot: boolean;
    errorMessage: string;
    datalist: HTMLNanoDatalistElement;
    setDataListOpts(): void;
    el: HTMLNanoInputElement;
    /**
     * This will be true when the control is in an invalid state.
     * Validity is determined by the `required` prop. Or if custom validity message is set. @readonly
     */
    get invalid(): any;
    _invalid: any;
    /**
     * Current validation message - if any. @readonly
     */
    get validityMessage(): string;
    /**
     * If the value of the type attribute is `"file"`, then this attribute will indicate the types of files that the server accepts, otherwise it will be ignored. The value must be a comma-separated list of unique content type specifiers.
     */
    accept?: string;
    /**
     * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
     */
    autocapitalise: 'none' | 'sentences' | 'words' | 'characters';
    /**
     * Indicates whether the value of the control can be automatically completed by the browser.
     */
    autocomplete: 'on' | 'off';
    /**
     * Whether auto correction should be enabled when the user is entering/editing the text value.
     */
    autocorrect: 'on' | 'off';
    /**
     * This Boolean attribute lets you specify that a form control should have input focus when the page loads.
     */
    autofocus: boolean;
    /**
     * If `true`, a clear icon will appear in the input when there is a value. Clicking it clears the input.
     */
    clearable: boolean;
    /**
     * If `true`, the value will be cleared after focus upon edit. Defaults to `true` when `type` is `"password"`, `false` for all other types.
     */
    clearOnEdit?: boolean;
    /**
     * Set the amount of time, in milliseconds, to wait to trigger the `nanoChange` event after each keystroke.
     */
    debounce: number;
    protected debounceChanged(): void;
    /**
     * If `true`, the user cannot interact with the input.
     */
    disabled: boolean;
    /**
     * 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';
    /**
     * When should the field perform validation
     */
    validateOn: 'dirty' | 'submit' | 'submitThenDirty';
    /**
     * Whether to show validation errors underneath input
     */
    showInlineError: boolean;
    private _label;
    /**
     * String to place within a label element. Alternatively you may use a label slot.
     */
    get label(): string;
    set label(value: string);
    /**
     * Sometimes it can be helpful to always show the placeholder, even when the input has a value.
     * For example a postcode field could have a placeholder `e.g. LD1 1AA` which is helpful to show.
     */
    alwaysShowPlaceholder: boolean;
    /**
     * Visually hide the label - but make it accessible.
     */
    hideLabel?: boolean;
    /**
     * Enable floating label behaviour. Will disable placeholder if set.
     */
    floatLabel: boolean;
    /**
     * The maximum value, which must not be less than its minimum (min attribute) value.
     */
    max?: string;
    /**
     * 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;
    /**
     * 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"` or `"file"`, 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"`, or `"password"`, otherwise it is ignored.
     */
    pattern?: string;
    /**
     * Instructional text that shows before the input has a value.
     */
    placeholder?: string | null;
    /**
     * If `true`, the user cannot modify the value.
     */
    readonly: boolean;
    /**
     * If `true`, the user must fill in a value before submitting a form.
     * By default, setting this will also add an asterisk to the label.
     */
    required: boolean;
    /**
     * If `true`, the element will have its spelling and grammar checked.
     */
    spellcheck: boolean;
    /**
     * 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 initial size of the control. This value is in pixels unless the value of the type attribute
     * is `"text"` or `"password"`, in which case it is an integer number of characters.
     * This attribute applies only when the `type` attribute is set to `"text"`, `"search"`, `"tel"`, `"url"`, `"email"`, or `"password"`, otherwise it is ignored.
     */
    size?: number;
    /**
     * The type of control to display. The default type is text.
     */
    type: TextFieldTypes;
    /**
     * The form element to associate the input with (its form owner). Must be the id of a form.
     */
    form?: string | null;
    /**
     * The value of the input.
     */
    value?: string | null;
    /**
     * Update the native input element when the value changes
     */
    protected valueChanged(): void;
    /** Represents the value of the input or NaN if numeric conversion is impossible */
    get valueAsNumber(): number;
    /** Represents the current value of the input as a Date, or null if conversion is not possible */
    get valueAsDate(): Date;
    /**
     * Whether to show a character count / remaining count when using the `maxlength` attribute.
     */
    showCharCount: boolean;
    protected handleValidatePropChange(): void;
    /**
     * relevant to `type="textarea"`. Vertical resizing - enable / disable or make automatic.
     */
    resize: 'true' | 'false' | 'auto';
    /**
     * relevant to `type="textarea"`. Default number of rows to show
     */
    rows: number;
    /**
     * relevant to `type="date"`. Whether to show a date picker.
     * Date pickers are not very useful if the potential input is too far in the distance or past e.g. Birthdays
     */
    showPicker: boolean;
    /** relevant to `type="date"`. Controls which days are disabled and therefore disallowed.
     * For example, this can be used to disallow selection of weekends.
     * @returns `false` for not disabled and `true` for disabled */
    isDateDisabled: DateDisabledPredicate;
    /**
     * relevant to `type="date"`. Initial picker date. Defaults to `value` if set and today's date if not.
     * Must be in IS0-8601 format: YYYY-MM-DD.
     */
    initialPickerDate?: string;
    /**
     * relevant to `type="date"`. If `true`, the input will close after a date is picked.
     */
    closeAfterPicked: boolean;
    /**
     * relevant to `type="date"`. Other options to pass to the date picker.
     * See the `nano-date-picker` docs for more information.
     */
    pickerOptions: Partial<NanoDatePicker>;
    /**
     * Emitted when a keyboard input occurred.
     */
    nanoInput: EventEmitter<InputEvent>;
    /**
     * Emitted when the value has changed.
     */
    nanoChange: EventEmitter<InputChangeEventDetail>;
    /**
     * Emitted when the input loses focus.
     */
    nanoBlur: EventEmitter<void>;
    /**
     * Emitted when the input has focus.
     */
    nanoFocus: EventEmitter<void>;
    /**
     * Emitted when the input has been created.
     * @internal
     */
    nanoDidLoad: EventEmitter<void>;
    /**
     * Emitted when the input has been removed.
     * @internal
     */
    nanoDidUnload: EventEmitter<void>;
    /**
     * Called when validation is performed (which depends on `validateOn`).
     * @returns event.detail: `{ isValid: boolean, errorMessage: string, originalEvent: Event }`.
     */
    nanoValidate: EventEmitter<ControlValidityEventDetail>;
    /**
     * Get the current state of the control.
     * @param validateFirst - perform validation first before reporting
     * @returns `{ isValid: boolean, errorMessage: string }`
     */
    reportValidity(validateFirst: boolean): Promise<ControlValidity>;
    /**
     * Sets focus on the specified `nano-input`. Use this method instead of the global
     * `input.focus()`.
     */
    setFocus(): Promise<void>;
    /**
     * Sets focus and select the text on the specified `nano-input`. Use this method instead of the global
     * `input.select()`.
     */
    select(): Promise<void>;
    /**
     * @returns the native `<input>` element used under the hood.
     */
    getInputElement(): Promise<HTMLInputElement | HTMLTextAreaElement>;
    /**
     * Invalidate the field and show a custom error message. To clear the error you will need to re-call this method with an empty string.
     */
    showError(message: string): Promise<void>;
    onReset(e: any): void;
    handleBlur(e: KeyboardEvent | MouseEvent | FocusEvent): void;
    private shouldClearOnEdit;
    private getValue;
    private validate;
    private onInput;
    private onBlur;
    private onFocus;
    private onKeydown;
    private clearTextInput;
    private focusChanged;
    private hasValue;
    private slotChangeObserver;
    private processSlottedContent;
    connectedCallback(): void;
    disconnectedCallback(): void;
    componentDidLoad(): void;
    componentWillLoad(): void;
    componentDidRender(): void;
    render(): any;
}
