import { AppKitError } from "./base.js";

//#region src/errors/initialization.d.ts

/**
 * Error thrown when a service or component is not properly initialized.
 * Use when accessing services before they are ready.
 *
 * @example
 * ```typescript
 * throw new InitializationError("CacheManager not initialized");
 * throw new InitializationError("ServiceContext not initialized. Call ServiceContext.initialize() first.");
 * ```
 */
declare class InitializationError extends AppKitError {
  readonly code = "INITIALIZATION_ERROR";
  readonly statusCode = 500;
  readonly isRetryable = true;
  /**
   * Create an initialization error for a service that is not ready
   */
  static notInitialized(serviceName: string, hint?: string): InitializationError;
  /**
   * Create an initialization error for setup failure
   */
  static setupFailed(component: string, cause?: Error): InitializationError;
  /**
   * Create an initialization error for migration failure
   */
  static migrationFailed(cause?: Error): InitializationError;
}
//#endregion
export { InitializationError };
//# sourceMappingURL=initialization.d.ts.map