/** A generic callable; callbacks/signatures handled here are dynamically typed. */ type AnyFunction = (...args: unknown[]) => unknown; interface Matrix { isMatrix: boolean; size(): number[]; get(index: number[]): T; dataType?: string; } interface OptimizedCallback { isUnary: boolean; fn: (...args: T[]) => R; } /** * Simplifies a callback function by reducing its complexity and potentially improving its performance. * * @param callback - The original callback function to simplify. * @param array - The array that will be used with the callback function. * @param name - The name of the function that is using the callback. * @param isUnary - If true, the callback function is unary and will be optimized as such. * @returns Returns a simplified version of the callback function. */ export declare function optimizeCallback(callback: AnyFunction, array: T[] | Matrix, name: string, isUnary?: boolean): OptimizedCallback; export {}; //# sourceMappingURL=optimizeCallback.d.ts.map