//#region src/utils/errors/lucid-error.d.ts
/**
 * The LucidError class should be used to throw errors in functions that sit outside of API request lifecycle. This class will log the error and optionally kill the process.
 * @class
 * @extends Error
 * @param {string} data.message - The error message
 * @param {string} [data.scope] - Used to identify the scope of the logged error
 * @param {boolean} [data.kill] - If true, the process will exit with code 1
 * @returns {void}
 * @example
 * throw new LucidError({
 *     message: "Cannot set a value to a read-only property",
 *     scope: "plugin-name",
 *     kill: true,
 * });
 */
declare class LucidError extends Error {
  scope?: string;
  kill?: boolean;
  constructor(data: {
    message: string;
    scope?: string;
    kill?: boolean;
    data?: Record<string, unknown>;
  });
}
//#endregion
export { LucidError as default };
//# sourceMappingURL=lucid-error.d.mts.map