import { A as WorkbenchConfigValue, t as DefineAppInput } from "./defineApp-DOJE2kjo.js";
import { AppVisibility, CliConfig } from "@sanity/cli-core";
/**
 * Bundled so adding a declaration family touches this type and the artifact
 * expanders, not every hop of build/dev plumbing in between. `config` is sourced
 * from `resolveWorkbenchConfig` (a config is not an app), not from this resolver.
 * @internal
 */
interface WorkbenchExposes {
  config?: WorkbenchConfigValue;
  views?: DefineAppInput['views'];
  webWorkers?: DefineAppInput['webWorkers'];
}
/** @public */
interface ResolvedWorkbenchApp {
  /**
   * Stable identity, distinct from the `slug` address. Defaults to `slug`, and is
   * what every identity key (build id, interface ids) is built from.
   */
  readonly name: string;
  /** Organization that owns the app — part of its build-id identity. */
  readonly organizationId: string;
  readonly slug: string;
  /** Views the app declares. */
  readonly views: NonNullable<DefineAppInput['views']>;
  /** Background web workers the app declares. */
  readonly webWorkers: NonNullable<DefineAppInput['webWorkers']>;
  /** Resolved app kind — `studio` or one of the SDK app types. */
  readonly applicationType?: string;
  /** SDK app-view entrypoint, when declared. */
  readonly entry?: string;
  /** Path to the app's icon SVG, resolved and shipped to Brett on deploy. */
  readonly icon?: string;
  /** Explicit singleton flag for Sanity-owned apps. */
  readonly isSingleton?: boolean;
  /** Dashboard visibility declared by the app; `undefined` when unset. */
  readonly visibility?: AppVisibility;
}
/**
 * Resolve the workbench app for a CLI config, or `null` for a plain project or a
 * config (which is not an app — read it with `resolveWorkbenchConfig`).
 * @public
 */
declare function resolveWorkbenchApp(cliConfig: CliConfig | null | undefined): ResolvedWorkbenchApp | null;
/** @public */
interface ResolvedMediaLibraryConfig {
  /** Target app the config binds to — resolves the org installation on deploy. */
  readonly appType: WorkbenchConfigValue['appType'];
  /** The config's declared fields, expanded into the federation remote on build. */
  readonly fields: WorkbenchConfigValue['fields'];
  /** Organization that owns the config's target installation. */
  readonly organizationId: string;
}
/**
 * Resolve the workbench config for a CLI config, or `null` when it carries no
 * config brand (a plain project or an app). The only config today is the Media
 * Library, so the resolved shape is a {@link ResolvedMediaLibraryConfig}.
 * @public
 */
declare function resolveWorkbenchConfig(cliConfig: CliConfig | null | undefined): ResolvedMediaLibraryConfig | null;
export { resolveWorkbenchApp as a, WorkbenchExposes as i, resolveWorkbenchConfig as n, ResolvedWorkbenchApp as r, ResolvedMediaLibraryConfig as t };
//# sourceMappingURL=resolveWorkbenchConfig-KhXnVKZ6.d.ts.map