import { Component, PropGetterFn, UnknownProperties, Intergalactic } from 'intergalactic/core'; import Input, { InputProps, InputValueProps } from 'intergalactic/input'; export type IInputMaskAsFn = (rawValue?: string) => string | RegExp[]; /** @deprecated */ export interface InputMaskAliases extends nputMaskAliases, UnknownProperties { } export type nputMaskAliases = { [s: string]: RegExp; }; /** @deprecated */ export interface IInputMaskValueProps extends InputMaskValueProps, UnknownProperties { } export type InputMaskValueProps = InputValueProps & { /** * Mask for entering text */ mask?: string | boolean | IInputMaskAsFn; /** * The property for visibility of the mask * @default false */ hideMask?: boolean; /** * This function allows you to change the input value before it is displayed on the screen. */ pipe?: (conformedValue: string, config: {}) => string | false | { value: string; indexesOfPipedChars: number[]; }; /** * @ignore */ keepCharPositions?: boolean; /** * The aliases object for the mask values. The key is the symbol used in the mask, * and the value is the regular expression that this symbol must match * @default {'9': /\d/, 'a': /[a-zA-Zа-яА-Я]/, '*': /[\da-zA-Zа-яА-Я]/} */ aliases?: InputMaskAliases; /** * Event that is called when the input value fully matches the mask */ onSuccess?: (value: string) => void; /** * A field that explains the mask for blind users * */ title?: string; includeInputProps?: string[]; /** * Field for describe which symbols will use as mask * @default `{_: true}` */ maskOnlySymbols?: Record; /** * Overrids width of the input field */ inputW?: string | number; /** * Aria role for input */ inputRole?: string; }; type InputMaskCtx = { getInputProps: PropGetterFn; getValueProps: PropGetterFn; }; export declare function getAfterPositionValue(value: string, mask?: any): number; declare const _default: ((props: Intergalactic.InternalTypings.ComponentProps) => Intergalactic.InternalTypings.ComponentRenderingResults) & Intergalactic.InternalTypings.ComponentAdditive<"div", Intergalactic.InternalTypings.ComponentTag, InputProps, InputMaskCtx, never[]> & { Value: Intergalactic.Component<'input', InputMaskValueProps>; Addon: typeof Input.Addon; }; export default _default;