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

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

/**
 * Error thrown when server lifecycle operations fail.
 * Use for server start/stop issues, configuration conflicts, etc.
 *
 * @example
 * ```typescript
 * throw new ServerError("Cannot get server when autoStart is true");
 * throw new ServerError("Server not started");
 * ```
 */
declare class ServerError extends AppKitError {
  readonly code = "SERVER_ERROR";
  readonly statusCode = 500;
  readonly isRetryable = false;
  /**
   * Create a server error for autoStart conflict
   */
  static autoStartConflict(operation: string): ServerError;
  /**
   * Create a server error for server not started
   */
  static notStarted(): ServerError;
  /**
   * Create a server error for Vite dev server not initialized
   */
  static viteNotInitialized(): ServerError;
  /**
   * Create a server error for missing client directory
   */
  static clientDirectoryNotFound(searchedPaths: string[]): ServerError;
}
//#endregion
export { ServerError };
//# sourceMappingURL=server.d.ts.map