import { PromiseOr } from '../Types'; /** * Executes the given asynchronous function with the provided parameters and calls the callback function when the function has completed with either the resolved value or the error that occurred. * @async * @template T - The type of the resolved value. * @template E - The type of the error that can be thrown. * @param {(...args: any[]) => PromiseOr} func - The asynchronous function to execute. * @param {(result: T | null, error: E | null) => PromiseOr} callback - The callback function to call when the function has completed. * @param {...any[]} params - The parameters to pass to the asynchronous function. * @returns {Promise} A Promise that resolves when the function has completed and the callback has been called. */ declare const _default: (func: (...args: never[]) => PromiseOr, callback: (result: T | null, error: E | null) => PromiseOr, ...params: never[]) => Promise; export default _default;