import { t as DevServerManifest } from "./registry-CIoKFIDw.js";
import { CliConfig, Output } from "@sanity/cli-core";
interface StartWorkbenchPreviewOptions {
  /** Directory for the workbench Vite server's dependency cache. */
  cacheDir: string;
  /** CLI-domain `app.id`/`deployment.appId` deprecation check, run before registering. */
  checkForDeprecatedAppId: () => void;
  cliConfig: CliConfig;
  /** Extract the project manifest to inline into the registry (studio-vs-app handled by the CLI). */
  extractManifest: (params: {
    applicationId?: string;
    configPath: string;
    workDir: string;
  }) => Promise<DevServerManifest['manifest']>;
  httpHost: string;
  httpPort: number;
  isApp: boolean;
  /** The built `dist` directory to serve as the federation remote. */
  outDir: string;
  output: Output;
  reactStrictMode: boolean;
  workDir: string;
}
/**
 * `sanity start` for a workbench app: serve a production build the way dev serves
 * a live one. The same singleton workbench shell renders it and the same registry
 * advertises it — only the remote differs, static files from the build output
 * instead of a live Vite dev server. There's no config watcher or rebuild: a
 * build is fixed, so nothing re-syncs.
 *
 * A running workbench claims the configured port, so the built remote binds the
 * next one. Without one the remote takes the configured port and announces its
 * own URL.
 */
declare function startWorkbenchPreview(options: StartWorkbenchPreviewOptions): Promise<{
  close: () => Promise<void>;
}>;
export { type StartWorkbenchPreviewOptions, startWorkbenchPreview };
//# sourceMappingURL=preview.d.ts.map