/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import React from 'react'; import { InputProps } from '../Input'; import { TextAreaProps } from '../TextArea'; export declare type LimitType = InputProps | TextAreaProps; export declare const useLimit: ({ defaultValue, value, onChange, limit, calcLength, openComposition, }: T) => { value: string | number | readonly string[] | undefined; onChange: (e: any) => void; handleComposition: (e: React.ChangeEvent | React.CompositionEvent) => void; suffix?: undefined; isOver?: undefined; } | { value: string | number | readonly string[] | undefined; onChange: (e: any) => void; handleComposition: (e: React.ChangeEvent | React.CompositionEvent) => void; suffix: JSX.Element; isOver: boolean; };