import type { Tail } from '@thalesrc/extra-ts-types'; import { limit } from '@thalesrc/js-utils/string/limit'; type FuncType = typeof limit; type FuncArgs = Parameters; type FuncReturn = ReturnType; type ProtoArgs = Tail; declare global { export interface String { /** * #### Limit * * Limits the string to `n` character * * * * * * Example: * ```typescript * import "@thalesrc/js-utils/string/proto/limit"; * * const str = 'foobarbaz'; * * str.limit(3); // 'foo' * ``` * * * * * @param count Count to limit string character size * @return Limited string */ limit(...args: ProtoArgs): FuncReturn; } } export {};