//#region src/types/index.d.ts /** * Type definitions for @rabjs/kit */ /** * Primitive types */ type Primitive = string | number | boolean | symbol | null | undefined; /** * Object type */ type ObjectType = Record; /** * Function type */ type FunctionType = (...args: never[]) => unknown; /** * Iteratee function type */ type IterateeFunction = (item: T, index?: number, array?: T[]) => R; /** * Comparator function type */ type ComparatorFunction = (a: T, b: T) => number; /** * Predicate function type */ type PredicateFunction = (item: T, index?: number, array?: T[]) => boolean; /** * Mapper function type */ type MapperFunction = (item: T, index?: number, array?: T[]) => R; /** * Reducer function type */ type ReducerFunction = (accumulator: R, item: T, index?: number, array?: T[]) => R; /** * Options for debounce/throttle */ interface ThrottleOptions { leading?: boolean; trailing?: boolean; maxWait?: number; } /** * Options for retry */ interface RetryOptions { maxAttempts?: number; delay?: number; backoff?: number; onRetry?: (attempt: number, error: Error) => void; signal?: AbortSignal; } /** * Options for timeout */ interface TimeoutOptions { ms: number; message?: string; } /** * Options for truncate */ interface TruncateOptions { length?: number; omission?: string; separator?: string | RegExp; } /** * Options for format/parse date */ interface DateFormatOptions { locale?: string; timeZone?: string; } //#endregion export { ComparatorFunction, DateFormatOptions, FunctionType, IterateeFunction, MapperFunction, ObjectType, PredicateFunction, Primitive, ReducerFunction, RetryOptions, ThrottleOptions, TimeoutOptions, TruncateOptions }; //# sourceMappingURL=index.d.cts.map