import { ComputedRef } from 'vue'; import { TdInputProps } from '../input/type'; export interface UseLengthLimitParams { value: string; maxlength: number; maxcharacter: number; allowInputOverMax: boolean; onValidate?: TdInputProps['onValidate']; } export default function useLengthLimit(params: ComputedRef): { limitNumber: ComputedRef; getValueByLimitNumber: (inputValue: string) => string; };