import React from 'react'; import type { CounterProps } from '../utils/limit-counter'; type UseCounterLogicParam = CounterProps & { length: number; onBeforeInput?: React.InputEventHandler; onPaste?: React.ClipboardEventHandler; onFocus?: React.FocusEventHandler; onBlur?: React.FocusEventHandler; }; export declare function useCounterLogic({ length, maxLength: maxLengthIncoming, showCounter: showCounterIncoming, limit: limitIncoming, onBeforeInput, onPaste, onFocus, onBlur, }: UseCounterLogicParam): { maxLength: number | undefined; fieldError: boolean; count: { text: string; status: "default" | "warning" | "error"; } | undefined; handleBeforeInput: React.InputEventHandler; handlePaste: React.ClipboardEventHandler; handleBlur: React.FocusEventHandler; handleFocus: React.FocusEventHandler; }; export {}; //# sourceMappingURL=useCounterLogic.d.ts.map