import { type AppPathsManifest, type PagesManifest, type PrerenderManifest, type RoutesManifest } from "./manifests.js"; export type TargetErrorCode = "NO_BUILD" | "NO_STANDALONE" | "BAD_MANIFEST"; export declare class TargetError extends Error { readonly code: TargetErrorCode; constructor(code: TargetErrorCode, message: string); } export type ValidatedTarget = { appDir: string; /** * Absolute path to the standalone `server.js`. At the root of * `.next/standalone` for a single-package app; under the app's path relative * to the workspace root for a monorepo. */ standaloneServer: string; appPaths: AppPathsManifest; pages: PagesManifest; /** Absent on builds that do not emit it; nothing downstream reads it. */ routes: RoutesManifest | undefined; /** * Absent on builds with nothing prerendered. Carries which routes revalidate * and the `previewModeId` needed to make them re-render under load. */ prerender: PrerenderManifest | undefined; }; /** * Validates that `appDir` contains a production build with * `output: "standalone"` and readable route manifests. Fails fast with an * actionable message otherwise. */ export declare function validateTarget(appDir: string): Promise;