import { D as ViewSurface, b as ServiceType } from "./defineApp-DOJE2kjo.js";
import { i as WorkbenchExposes, r as ResolvedWorkbenchApp } from "./resolveWorkbenchConfig-KhXnVKZ6.js";
import { CliConfig } from "@sanity/cli-core";
import { z } from "zod/mini";
/**
 * Payload registering an app's views with the application service on deploy.
 *
 * Phase 1 stub: the service that stores views does not exist yet, so the
 * payload is validated and logged only — never sent. Builds the contract the
 * application-service endpoint will accept.
 */
declare const viewDeploymentPayloadSchema: z.ZodMiniObject<{
  applicationId: z.ZodMiniString<string>;
  views: z.ZodMiniArray<z.ZodMiniObject<{
    name: z.ZodMiniString<string>;
    src: z.ZodMiniString<string>;
    type: z.ZodMiniEnum<{
      window: "window";
      panel: "panel";
      asset_source: "asset_source";
      tile: "tile";
    }>;
  }, z.core.$loose>>;
}, z.core.$strip>;
type ViewDeploymentPayload = z.infer<typeof viewDeploymentPayloadSchema>;
interface DeployableWorkbenchApp extends ResolvedWorkbenchApp {
  /**
   * Throws when the app exposes nothing (no entry, view, or service) — the
   * remote would have nothing to load. Gated before any prompt or API call.
   */
  assertDeployable(): void;
  /**
   * Validates the app's declared views into the application-service payload.
   * Throws when a view declaration is malformed.
   */
  buildViewDeploymentPayload(applicationId: string): ViewDeploymentPayload;
  /** Declares something to host as an application — an entry, view, or service. */
  hasInterfaces: boolean;
}
declare function getWorkbench(cliConfig: CliConfig | null | undefined): DeployableWorkbenchApp | null;
interface DeployedInterfaceBase {
  name: string;
  src: string;
  title: string;
}
/** A view as the deploy report and `--json` output surface it. */
interface DeployedView extends DeployedInterfaceBase {
  surface: ViewSurface;
}
/** A web worker as the deploy report and `--json` output surface it. */
interface DeployedWebWorker extends DeployedInterfaceBase {
  type: ServiceType;
}
type DeployedInterface = DeployedView | DeployedWebWorker;
/**
 * One report line per non-empty group, alongside the records `--json` reports.
 * @internal
 */
declare function summarizeInterfaces({ views, webWorkers }: WorkbenchExposes): {
  lines: string[];
  services: DeployedWebWorker[];
  views: DeployedView[];
};
export { DeployableWorkbenchApp as a, summarizeInterfaces as i, DeployedView as n, getWorkbench as o, DeployedWebWorker as r, DeployedInterface as t };
//# sourceMappingURL=summarizeInterfaces-noqbAtVC.d.ts.map