/** * Lazy import helper * * @remarks * Callback function may be async or sync * * @param onReady - callback function * @returns void */ interface lazy { (module: Promise<{ default: T; }>, handler: (module: T) => Promise | unknown, errorHandler?: (error: unknown) => unknown): Promise; } declare const lazy: lazy; export default lazy;