import { IKosDataModel } from '../core/kosModel';

/**
 * Asynchronously waits for a Kos Data Model to become ready for use.
 *
 * This utility function is used to ensure that a Kos Data Model is fully
 * loaded and ready to be accessed before performing any operations on it.
 *
 * @category Utility
 * @name whenReady
 * @version 1.0.0
 * @param dataModel - The Kos Data Model to wait for readiness.
 * @throws {Error} If the specified data model is not found or if it has no ID.
 * @returns A promise that resolves to the same data model when it becomes ready.
 *
 * @example
 * // Wait for the 'dataModel' to become ready before using it.
 * const dataModel = await whenReady(dataModel);
 */
export declare const whenReady: (dataModel: IKosDataModel) => Promise<IKosDataModel>;
//# sourceMappingURL=when-ready.d.ts.map