export declare type ErrorMessageCodeType = { errorCode?: string; context?: string; error?: { code: number; }; }; export declare type ErrorMessagesType = { [key in string | number]: string; }; /** * @function * @description Gets an error message based on a given error code and an object of error messages. * @param {ErrorMessageCodeType} code - Object containing optional errorCode, context, and error properties. * @param {ErrorMessagesType} errorMessages - Object of error messages. * @return {string} The error message that corresponds to the given error code, or an empty string if not found. */ export declare const getErrorMessage: (code: ErrorMessageCodeType, errorMessages: ErrorMessagesType) => string;