import { r as CliConfig } from "./cliConfig-BZgn8ge1.js";
import { z } from "zod/mini";
/**
 * Boolean brand check — used for config-load routing, kept exported for
 * backward compatibility. For the typed narrowing (the app's declared fields),
 * use `isWorkbenchApp` from `@sanity/workbench-cli`, derived from the schema.
 */
declare function isWorkbenchApp(app: unknown): boolean;
declare const applicationTypeSchema: z.ZodMiniEnum<{
  coreApp: "coreApp";
  studio: "studio";
  canvas: "canvas";
  dashboard: "dashboard";
}>;
/** The resolved kind of a workbench app — `studio` or one of the SDK app types. */
type ApplicationType = z.infer<typeof applicationTypeSchema>;
/**
 * Parse a config whose `app` is a branded `defineApplication(...)` result. The
 * branded `app` bypasses the legacy `app` schema (which would strip its identity
 * fields and the brand); every other field is still validated.
 *
 * Resolves `applicationType` once, here, so studio-vs-app is settled everywhere
 * downstream. The value lands on a clone, never the caller's object, so
 * re-parsing the same `app` for another directory can't inherit a stale guess.
 */
declare function parseWorkbenchCliConfig(cliConfig: unknown, projectDir: string): CliConfig;
export { isWorkbenchApp as n, parseWorkbenchCliConfig as r, ApplicationType as t };
//# sourceMappingURL=workbenchApp-DFUFhE7a.d.ts.map