import { A as QueryCtx, B as ServiceDescriptor, E as OperationDescriptor, H as ServiceInstance, I as RuntimeService, L as SchemaDescriptor, M as QueryFunctions, R as ServerServiceRegistration, U as ServiceInstanceOf, V as ServiceId, W as ServiceRegistrationOptions, _ as CommandCtx, a as ToolsetGetService, g as Command, j as QueryDefinition, k as Query, q as ServiceSummary, v as CommandDefinition, z as ServiceDefinition } from "../chunk-CFpRk_Kn.js";
import { Ac as AnySchema, At as Status, Bc as ObjectSchema, Cc as StoryIndexAccess, Dc as DocsAccess, Ec as createDocsToolset, Et as StorybookError, Fs as ImportParserContext, Ft as StatusTypeId, Gc as StringSchema, Ic as LiteralSchema, Is as ParseFileArgs, Jc as VariantSchema, Kc as UndefinedSchema, Ls as ChangeDetectionAdapter, Lt as StatusesByStoryIdAndTypeId, Mc as DescriptionAction, Mt as StatusStore, Nc as GenericSchema, Ns as ImportEdge, Nt as StatusStoreByTypeId$1, Oc as ResolvedDocsEntry, Pc as InferOutput, Ps as ImportParser, Pt as StatusStoreEvent, Rs as FileChangeEvent, Sc as PreviewStoriesOutput, Sl as MockUniversalStore, Tc as reviewToolset, Uc as RecordSchema, Vc as OptionalSchema, Wc as SchemaWithPipe, Yc as VoidSchema, bc as registerToolset, fl as TestProviderId, gl as TestProviderStoreEvent, hl as TestProviderStoreById, jc as ArraySchema, kc as emptyManifests, ml as TestProviderStateByProviderId, nl as Tag, qc as UnionSchema, ss as Options$1, tl as defineService, wc as createStoriesToolset, wl as UniversalStore, xo as ModuleGraphServiceState, zc as NumberSchema, zs as ModuleResolveConfig } from "../chunk-zQu03vfn.js";
import { n as registerService, t as getService$1 } from "../chunk-C7SCAuvd.js";
import { ArgTypes, SBType } from "storybook/internal/csf";
import { Channel, ChannelLike } from "storybook/internal/channels";
import { Builder, BuilderOptions, CLIOptions, DocsAnchor, DocsIndexEntry, DocsOptions, IndexEntry, IndexInputStats, Indexer, LoadOptions, Manifests, NormalizedStoriesSpecifier, Options, Path, Presets, StatusStoreByTypeId, StatusValue, StoryIndex, StoryIndexEntry, StorybookConfigRaw } from "storybook/internal/types";
import { CreateNewStoryRequestPayload } from "storybook/internal/core-events";
import { getPreviewBodyTemplate, getPreviewHeadTemplate, loadAllPresets } from "storybook/internal/common";
import { EventType } from "storybook/internal/telemetry";
import { watch } from "node:fs";
import { readFile, stat } from "node:fs/promises";

//#region code/core/.dts-emit/code/core/src/core-server/build-static.d.ts
type BuildStaticStandaloneOptions = CLIOptions & LoadOptions & BuilderOptions & {
  outputDir: string;
};
declare function buildStaticStandalone(options: BuildStaticStandaloneOptions): Promise<void>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/build-dev.d.ts
/**
 * Resolves the initialPath for the browser open URL.
 * CLI-provided initialPath always wins. If not set and not running in an agent context,
 * checks the project cache for an `onboarding-pending` entry written by `storybook init`.
 * If found, returns '/onboarding' and removes the cache entry so it only triggers once.
 * The cache entry is only written by init when onboarding is known to be supported,
 * so no further addon check is needed here.
 */
declare function resolveOnboardingInitialPath(cliInitialPath: string | undefined): Promise<string | undefined>;
declare function buildDevStandalone(options: CLIOptions & LoadOptions & BuilderOptions & {
  storybookVersion?: string;
  previewConfigPath?: string;
}): Promise<{
  port: number;
  address: string;
  networkAddress: string;
}>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/build-index.d.ts
type BuildIndexOptions = CLIOptions & LoadOptions & BuilderOptions;
declare const buildIndex: (options: BuildIndexOptions) => Promise<import("storybook/internal/types").StoryIndex>;
declare const buildIndexStandalone: (options: BuildIndexOptions & {
  outputFile: string;
}) => Promise<void>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/withTelemetry.d.ts
type TelemetryOptions = {
  cliOptions: CLIOptions;
  presetOptions?: Parameters<typeof loadAllPresets>[0];
  printError?: (err: any) => void;
  skipPrompt?: boolean;
  eventType?: EventType;
  fallbackTelemetryState?: boolean;
};
type ErrorLevel = 'none' | 'error' | 'full';
declare function getErrorLevel({
  cliOptions,
  presetOptions,
  skipPrompt,
  eventType
}: TelemetryOptions): Promise<ErrorLevel>;
declare function sendTelemetryError(_error: unknown, eventType: EventType, options: TelemetryOptions, blocking?: boolean, parent?: StorybookError): Promise<void>;
declare function withTelemetry<T>(eventType: EventType, options: TelemetryOptions, run: () => Promise<T>): Promise<T | undefined>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/standalone.d.ts
declare function build(options?: any, frameworkOptions?: any): Promise<void | {
  port: number;
  address: string;
  networkAddress: string;
}>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/server-statics.d.ts
declare const mapStaticDir: (staticDir: NonNullable<StorybookConfigRaw['staticDirs']>[number], configDir: string) => {
  staticDir: string;
  staticPath: string;
  targetDir: string;
  targetEndpoint: string;
};
//#endregion
//#region node_modules/tsconfig-paths/lib/filesystem.d.ts
/**
 * A function that json from a file
 */
interface ReadJsonSync {
  (packageJsonPath: string): any | undefined;
}
//#endregion
//#region node_modules/tsconfig-paths/lib/match-path-sync.d.ts
/**
 * Function that can match a path
 */
interface MatchPath {
  (requestedModule: string, readJson?: ReadJsonSync, fileExists?: (name: string) => boolean, extensions?: ReadonlyArray<string>): string | undefined;
}
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/IndexingError.d.ts
declare class IndexingError extends Error {
  importPaths: string[];
  constructor(message: string, importPaths: string[], stack?: string);
  pathsString(): string;
  toString(): string;
}
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/summarizeStats.d.ts
type IndexStatsSummary = Record<keyof IndexInputStats, number>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/StoryIndexGenerator.d.ts
type StoryIndexEntryWithExtra = StoryIndexEntry & {
  extra: {
    metaId?: string;
    stats: IndexInputStats;
  };
};
/** A .mdx file will produce a docs entry */
type DocsCacheEntry = DocsIndexEntry;
/** A `_.stories._` file will produce a list of stories and possibly a docs entry */
type StoriesCacheEntry = {
  entries: (StoryIndexEntryWithExtra | DocsIndexEntry)[];
  dependents: Path[];
  type: 'stories';
};
type ErrorEntry = {
  type: 'error';
  err: IndexingError;
};
type CacheEntry = false | StoriesCacheEntry | DocsCacheEntry | ErrorEntry;
type SpecifierStoriesCache = Record<Path, CacheEntry>;
type StoryIndexGeneratorOptions = {
  workingDir: Path;
  configDir: Path;
  indexers: Indexer[];
  docs: DocsOptions;
  build?: StorybookConfigRaw['build'];
  features?: StorybookConfigRaw['features'];
};
/**
 * The StoryIndexGenerator extracts stories and docs entries for each file matching (one or more)
 * stories "specifiers", as defined in main.js.
 *
 * The output is a set of entries (see above for the types).
 *
 * Each file is treated as a stories or a (modern) docs file.
 *
 * A stories file is indexed by an indexer (passed in), which produces a list of stories.
 *
 * - If the stories have the `parameters.docsOnly` setting, they are disregarded.
 * - If the stories have `autodocs` enabled, a docs entry is added pointing to the story file.
 *
 * A (modern) docs (.mdx) file is indexed, a docs entry is added.
 *
 * In the preview, a docs entry with the `autodocs` tag will be rendered as a CSF file that exports
 * an MDX template on the `docs.page` parameter, whereas other docs entries are rendered as MDX
 * files directly.
 *
 * The entries are "uniq"-ed and sorted. Stories entries are preferred to docs entries and MDX docs
 * entries are preferred to CSF templates (with warnings).
 */
declare class StoryIndexGenerator {
  readonly specifiers: NormalizedStoriesSpecifier[];
  readonly options: StoryIndexGeneratorOptions;
  private specifierToCache;
  /** Cache for findMatchingFiles results */
  private static findMatchingFilesCache;
  private lastIndex?;
  private lastStats?;
  private lastError?;
  private invalidationListeners;
  constructor(specifiers: NormalizedStoriesSpecifier[], options: StoryIndexGeneratorOptions);
  /** Generate a cache key for findMatchingFiles */
  private static getFindMatchingFilesCacheKey;
  /** Clear the findMatchingFiles cache */
  static clearFindMatchingFilesCache(): void;
  static findMatchingFiles(specifier: NormalizedStoriesSpecifier, workingDir: Path, ignoreWarnings?: boolean): Promise<SpecifierStoriesCache>;
  static findMatchingFilesForSpecifiers(specifiers: NormalizedStoriesSpecifier[], workingDir: Path, ignoreWarnings?: boolean): Promise<Array<readonly [NormalizedStoriesSpecifier, SpecifierStoriesCache]>>;
  initialize(): Promise<void>;
  /** Run the updater function over all the empty cache entries */
  updateExtracted(updater: (specifier: NormalizedStoriesSpecifier, absolutePath: Path, existingEntry: CacheEntry) => Promise<CacheEntry>, overwrite?: boolean): Promise<void>;
  isDocsMdx(absolutePath: Path): boolean;
  ensureExtracted({
    projectTags
  }: {
    projectTags?: Tag[];
  }): Promise<{
    entries: (IndexEntry | ErrorEntry)[];
    stats: IndexStatsSummary;
  }>;
  findDependencies(absoluteImports: Path[]): StoriesCacheEntry[];
  /**
   * Try to find the component path from a raw import string and return it in the same format as
   * `importPath`. Respect tsconfig paths if available.
   *
   * If no such file exists, assume that the import is from a package and return the raw
   */
  resolveComponentPath(rawComponentPath: Path, absolutePath: Path, matchPath: MatchPath | undefined): string;
  extractStories(specifier: NormalizedStoriesSpecifier, absolutePath: Path, projectTags?: Tag[]): Promise<StoriesCacheEntry | DocsCacheEntry>;
  extractDocs(specifier: NormalizedStoriesSpecifier, absolutePath: Path, projectTags?: Tag[]): Promise<false | DocsIndexEntry>;
  chooseDuplicate(firstEntry: IndexEntry, secondEntry: IndexEntry, projectTags: Tag[]): IndexEntry;
  sortStories(entries: StoryIndex['entries'], storySortParameter: any): Promise<Record<string, IndexEntry>>;
  getIndex(): Promise<StoryIndex>;
  getIndexAndStats(): Promise<{
    storyIndex: StoryIndex;
    stats: IndexStatsSummary;
  }>;
  invalidateAll(): void;
  invalidate(importPath: Path, removed: boolean): void;
  onInvalidated(listener: () => void): () => void;
  getPreviewCode(): Promise<string | undefined>;
  getProjectTags(previewCode?: string): string[];
  static storyFileNames(specifierToCache: Map<NormalizedStoriesSpecifier, SpecifierStoriesCache>): string[];
}
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/get-stories-paths-from-config.d.ts
/**
 * Resolves story file paths from a main config's `stories` field without evaluating story files.
 *
 * @example
 *
 * ```typescript
 * const storiesPaths = await getStoriesPathsFromConfig({
 *   stories: ['src\/**\/*.stories.tsx'],
 *   configDir: '/path/to/.storybook',
 *   workingDir: '/path/to/project',
 * });
 * ```
 */
declare const getStoriesPathsFromConfig: ({
  stories,
  configDir,
  workingDir
}: {
  stories: StorybookConfigRaw['stories'];
  configDir: string;
  workingDir: string;
}) => Promise<string[]>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/generate-story.d.ts
interface GenerateStoryResult {
  success: boolean;
  storyId?: string;
  kind?: string;
  storyFilePath?: string;
  exportedStoryName?: string;
  error?: string;
  errorType?: 'STORY_FILE_EXISTS' | 'UNKNOWN';
}
interface GenerateStoryOptions {
  /**
   * If true, checks if the file exists and returns an error without writing. If false, writes the
   * file even if it exists (overwrites).
   *
   * @default true
   */
  checkFileExists?: boolean;
}
/**
 * Generates and writes a new story file for a component.
 *
 * This function orchestrates the entire story file creation process:
 *
 * 1. Generates the story file path and content based on the component
 * 2. Optionally checks if the file already exists
 * 3. Writes the story file to disk
 * 4. Returns metadata about the created story
 *
 * @example
 *
 * ```ts
 * const result = await generateStoryFile(
 *   {
 *     componentFilePath: 'src/components/Button.tsx',
 *     componentExportName: 'Button',
 *     componentIsDefaultExport: true,
 *     componentExportCount: 1,
 *   },
 *   options
 * );
 *
 * if (result.success) {
 *   console.log(`Story created at ${result.storyFilePath}`);
 * }
 * ```
 *
 * @param payload - The component information for which to create a story
 * @param options - Storybook options for configuration
 * @param generateOptions - Additional options for story generation behavior
 * @returns A promise that resolves to the result of the story generation
 */
declare function generateStoryFile(payload: CreateNewStoryRequestPayload, options: Options, generateOptions?: GenerateStoryOptions): Promise<GenerateStoryResult>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/get-dummy-args-from-argtypes.d.ts
type ComponentArgTypesInfo = {
  required: boolean;
  type: SBType;
};
type ComponentArgTypesData = {
  props?: Record<string, ComponentArgTypesInfo>;
};
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/load.d.ts
declare function loadStorybook(options: CLIOptions & LoadOptions & BuilderOptions & {
  storybookVersion?: string;
  previewConfigPath?: string;
  /**
   * The channel handed to every preset. Callers that prepared state on a channel of their own
   * (the `storybook tools` CLI prepares the UniversalStore singleton on one) must pass it here,
   * so addon hooks that answer requests over `options.channel` share the caller's bus.
   */
  channel?: Channel;
}): Promise<Options>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/analyze-mdx.d.ts
type MdxAnalysisResult = {
  title: string | undefined;
  of: string | undefined;
  name: string | undefined;
  id: string | undefined;
  summary: string | undefined;
  isTemplate: boolean;
  metaTags?: string[];
  imports: string[];
  anchors?: DocsAnchor[];
};
declare const analyzeMdx: (code: string) => Promise<MdxAnalysisResult>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/manifests/mdx-manifest.d.ts
/**
 * Canonical contract for the MDX docs open service.
 *
 * The service implementation lives in `@storybook/addon-docs`, but the data contract (service id,
 * on-disk/`$ref` layout, payload shapes, and the consumer query handle) lives here in core so the
 * addon that produces it and the core manifest writer that consumes it share one source of truth.
 * Mirrors the docgen service contract under `shared/open-service/services/docgen/`.
 */
/** A JSON Reference (`{ $ref }`) pointing at a value in another manifest document. */
type JsonRef = {
  $ref: string;
};
/** Open-service id for the MDX docs service (also the on-disk directory under `services/`). */
declare const MDX_SERVICE_ID = "addon-docs/mdx";
/** Free-form error captured while reading or analyzing an MDX doc. */
interface MdxError {
  name: string;
  message: string;
}
/**
 * One MDX doc, both as stored in the service and as resolved from a manifest `$ref`.
 *
 * `summary` shares `content`'s optionality: it is derived from the doc when available (an explicit
 * `Meta` summary, falling back to text extracted from the content) and omitted otherwise.
 */
interface MdxDocPayload {
  id: string;
  name: string;
  path: string;
  title: string;
  content?: string;
  summary?: string;
  error?: MdxError;
  mdx?: never;
}
/** Per-component MDX payload: every doc grouped under a single component (or standalone) id. */
interface MdxPayload {
  id: string;
  name: string;
  docs: Record<string, MdxDocPayload>;
}
/** Shallow docs index row: id, name, optional summary, and a `$ref` to the full MDX payload. */
interface DocsManifestRefEntry {
  id: string;
  name: string;
  summary?: string;
  mdx: JsonRef;
  path?: never;
  title?: never;
  content?: never;
  error?: never;
}
/** A docs manifest entry is either an inline payload or a shallow `$ref` row. */
type DocsManifestEntry = MdxDocPayload | DocsManifestRefEntry;
/** Minimal consumer handle for reading every MDX payload from the live service (dev). */
interface MdxServiceContract {
  queries: {
    mdxForAllComponents: {
      loaded: () => Promise<Record<string, MdxPayload>>;
    };
  };
}
/** Relative path segment for one component's static snapshot file (`<id>.json`). */
declare function mdxQueryStaticPath(id: string): string;
/** Logical static-store key: `addon-docs/mdx/<id>.json`. */
declare function mdxStaticStorePath(id: string): string;
/** `$ref` target for one doc, relative to the `manifests/` directory. */
declare function mdxManifestRef(componentId: string, docId: string): string;
//#endregion
//#region code/core/.dts-emit/code/core/src/shared/open-service/service-registry.d.ts
/** Returns one summary entry per registered service — the lowest-cost discovery endpoint. */
declare function listServices(): Promise<ServiceSummary[]>;
/** Returns the schema-backed descriptor for one registered service. */
declare function describeService(serviceId: ServiceId): Promise<ServiceDescriptor>;
//#endregion
//#region code/core/.dts-emit/code/core/src/shared/open-service/toolsets/stories/story-input.d.ts
/**
 * Shared story selector used by the stories and test APIs.
 *
 * Prefer `{ storyId }` unless the caller already has a concrete story-file path and export name.
 */
declare const storyInputSchema: UnionSchema<[ObjectSchema<{
  readonly props: SchemaWithPipe<readonly [OptionalSchema<RecordSchema<StringSchema<undefined>, AnySchema, undefined>, undefined>, DescriptionAction<{
    [x: string]: any;
  } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
  readonly globals: SchemaWithPipe<readonly [OptionalSchema<RecordSchema<StringSchema<undefined>, AnySchema, undefined>, undefined>, DescriptionAction<{
    [x: string]: any;
  } | undefined, "Optional Storybook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
  readonly exportName: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "The export name of the story from the story file.\nUse this path-based shape only when you're already editing a .stories.* file and know the export names in that file.\nIf you do not already have story file context, prefer the storyId shape instead of searching files.">]>;
  readonly explicitStoryName: SchemaWithPipe<readonly [OptionalSchema<StringSchema<undefined>, undefined>, DescriptionAction<string | undefined, "If the story has an explicit name set via the \"name\" property, that is different from the export name, provide it here.\nOtherwise don't set this.">]>;
  readonly absoluteStoryPath: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Absolute path to the story file. Use together with exportName only when story file context is already available.">]>;
}, undefined>, ObjectSchema<{
  readonly props: SchemaWithPipe<readonly [OptionalSchema<RecordSchema<StringSchema<undefined>, AnySchema, undefined>, undefined>, DescriptionAction<{
    [x: string]: any;
  } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
  readonly globals: SchemaWithPipe<readonly [OptionalSchema<RecordSchema<StringSchema<undefined>, AnySchema, undefined>, undefined>, DescriptionAction<{
    [x: string]: any;
  } | undefined, "Optional Storybook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
  readonly storyId: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, `The full Storybook story ID (for example "button--primary").
Prefer this shape whenever you are not already working in a specific story file.
Use IDs discovered from ${string} (withStoryIds=true) or ${string}.`>]>;
}, undefined>], undefined>;
declare const storyInputArraySchema: ArraySchema<UnionSchema<[ObjectSchema<{
  readonly props: SchemaWithPipe<readonly [OptionalSchema<RecordSchema<StringSchema<undefined>, AnySchema, undefined>, undefined>, DescriptionAction<{
    [x: string]: any;
  } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
  readonly globals: SchemaWithPipe<readonly [OptionalSchema<RecordSchema<StringSchema<undefined>, AnySchema, undefined>, undefined>, DescriptionAction<{
    [x: string]: any;
  } | undefined, "Optional Storybook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
  readonly exportName: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "The export name of the story from the story file.\nUse this path-based shape only when you're already editing a .stories.* file and know the export names in that file.\nIf you do not already have story file context, prefer the storyId shape instead of searching files.">]>;
  readonly explicitStoryName: SchemaWithPipe<readonly [OptionalSchema<StringSchema<undefined>, undefined>, DescriptionAction<string | undefined, "If the story has an explicit name set via the \"name\" property, that is different from the export name, provide it here.\nOtherwise don't set this.">]>;
  readonly absoluteStoryPath: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Absolute path to the story file. Use together with exportName only when story file context is already available.">]>;
}, undefined>, ObjectSchema<{
  readonly props: SchemaWithPipe<readonly [OptionalSchema<RecordSchema<StringSchema<undefined>, AnySchema, undefined>, undefined>, DescriptionAction<{
    [x: string]: any;
  } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
  readonly globals: SchemaWithPipe<readonly [OptionalSchema<RecordSchema<StringSchema<undefined>, AnySchema, undefined>, undefined>, DescriptionAction<{
    [x: string]: any;
  } | undefined, "Optional Storybook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
  readonly storyId: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, `The full Storybook story ID (for example "button--primary").
Prefer this shape whenever you are not already working in a specific story file.
Use IDs discovered from ${string} (withStoryIds=true) or ${string}.`>]>;
}, undefined>], undefined>, undefined>;
type StoryInput = InferOutput<typeof storyInputSchema>;
//#endregion
//#region code/core/.dts-emit/code/core/src/shared/open-service/toolsets/stories/find-story-ids.d.ts
interface FoundStory {
  /** The matched index entry — carrying it proves the id exists in the index. */
  entry: IndexEntry;
  input: StoryInput;
}
interface NotFoundStory {
  input: StoryInput;
  errorMessage: string;
}
type FindStoryIdsResult = FoundStory | NotFoundStory;
/**
 * Finds story IDs in the story index that match the given story inputs.
 *
 * Returns per-input lookup results in the same order as `stories`.
 */
declare function findStoryIds(index: StoryIndex, stories: StoryInput[]): FindStoryIdsResult[];
//#endregion
//#region code/core/.dts-emit/code/core/src/shared/open-service/toolsets/docs/access-service.d.ts
type ServiceDocsAccessOptions = {
  storyIndex: {
    getIndex: () => Promise<StoryIndex>;
  };
  getService: ToolsetGetService;
};
declare function createServiceDocsAccess({
  storyIndex,
  getService
}: ServiceDocsAccessOptions): DocsAccess;
//#endregion
//#region code/core/.dts-emit/code/core/src/shared/open-service/toolsets/docs/access-manifest.d.ts
/** The manifests as they leave core's manifest builder, before any shape is assumed. */
type RawManifests = {
  components?: unknown;
  docs?: unknown;
};
type ManifestDocsAccessOptions = {
  getManifests: () => Promise<RawManifests>;
};
declare function createManifestDocsAccess({
  getManifests
}: ManifestDocsAccessOptions): DocsAccess;
//#endregion
//#region code/core/.dts-emit/code/core/src/shared/open-service/toolsets/docs/access-local.d.ts
type LocalDocsAccessOptions = {
  storyIndex: {
    getIndex: () => Promise<StoryIndex>;
  }; /** Reads the live inline manifests, e.g. core-server's `loadManifests`. */
  getManifests: () => Promise<RawManifests>;
};
declare function createLocalDocsAccess({
  storyIndex,
  getManifests
}: LocalDocsAccessOptions): DocsAccess;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/manifests/manifests.d.ts
/**
 * Loads the live manifests, the same way the dev-server manifest routes do.
 *
 * Exposed for the docs toolset, which reads manifest data in-process instead of fetching its own
 * server over loopback HTTP.
 */
declare function loadManifests(presets: Presets): Promise<Manifests>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/stores/status.d.ts
declare function createServerStatusStore(leader: boolean): {
  getStatusStoreByTypeId: (typeId: StatusTypeId) => StatusStoreByTypeId$1;
  fullStatusStore: StatusStore & {
    selectStatuses: (statuses: Status[]) => void;
    typeId: undefined;
  };
  universalStatusStore: UniversalStore<StatusesByStoryIdAndTypeId, StatusStoreEvent>;
};
type StatusStoreBundle = ReturnType<typeof createServerStatusStore>;
declare const getStatusStoreByTypeId: StatusStoreBundle['getStatusStoreByTypeId'];
declare const fullStatusStore: StatusStoreBundle['fullStatusStore'];
declare const universalStatusStore: StatusStoreBundle['universalStatusStore'];
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/change-detection/errors.d.ts
declare class ChangeDetectionUnavailableError extends Error {
  constructor(message: string, options?: ErrorOptions);
}
declare class ChangeDetectionFailureError extends Error {
  constructor(message: string, options?: ErrorOptions);
}
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/change-detection/readiness.d.ts
type ChangeDetectionReadiness = {
  status: 'ready';
} | {
  status: 'unavailable';
  reason: string;
  error?: Error;
} | {
  status: 'error';
  error: Error;
};
type ChangeDetectionHost = () => void | Promise<void>;
/**
 * Install a one-shot starter the first {@link getChangeDetectionReadiness} call runs. The CLI uses
 * this so git/status scanning does not start at bootstrap; the dev server starts the service itself
 * and never installs a host.
 */
declare function setChangeDetectionHost(next?: ChangeDetectionHost): void;
declare function getChangeDetectionReadiness(): Promise<ChangeDetectionReadiness>;
declare function resetChangeDetectionReadiness(): void;
//#endregion
//#region code/core/.dts-emit/code/core/src/shared/open-service/services/module-graph/definition.d.ts
declare const moduleGraphServiceDef: ServiceDefinition<ModuleGraphServiceState, {
  readonly status: QueryDefinition<ModuleGraphServiceState, UndefinedSchema<undefined>, VariantSchema<"value", [ObjectSchema<{
    readonly value: LiteralSchema<"booting", undefined>;
  }, undefined>, ObjectSchema<{
    readonly value: LiteralSchema<"ready", undefined>;
  }, undefined>, ObjectSchema<{
    readonly value: LiteralSchema<"error", undefined>;
    readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
  }, undefined>, ObjectSchema<{
    readonly value: LiteralSchema<"unavailable", undefined>;
    readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
    readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
  }, undefined>], undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"status\" has internal: true but must be prefixed with \"_\"";
  } | {
    internal?: false;
  });
  readonly changeDetectionReadiness: QueryDefinition<ModuleGraphServiceState, UndefinedSchema<undefined>, VariantSchema<"status", [ObjectSchema<{
    readonly status: LiteralSchema<"pending", undefined>;
  }, undefined>, ObjectSchema<{
    readonly status: LiteralSchema<"ready", undefined>;
  }, undefined>, ObjectSchema<{
    readonly status: LiteralSchema<"unavailable", undefined>;
    readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
    readonly error: OptionalSchema<ObjectSchema<{
      readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
    }, undefined>, undefined>;
  }, undefined>, ObjectSchema<{
    readonly status: LiteralSchema<"error", undefined>;
    readonly error: ObjectSchema<{
      readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
    }, undefined>;
  }, undefined>], undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"changeDetectionReadiness\" has internal: true but must be prefixed with \"_\"";
  } | {
    internal?: false;
  });
  readonly graphRevision: QueryDefinition<ModuleGraphServiceState, OptionalSchema<ObjectSchema<{
    readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
  }, undefined>, undefined>, NumberSchema<undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"graphRevision\" has internal: true but must be prefixed with \"_\"";
  } | {
    internal?: false;
  });
  readonly fileActivityRevision: QueryDefinition<ModuleGraphServiceState, UndefinedSchema<undefined>, NumberSchema<undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"fileActivityRevision\" has internal: true but must be prefixed with \"_\"";
  } | {
    internal?: false;
  });
  readonly latestStoryChanges: QueryDefinition<ModuleGraphServiceState, UndefinedSchema<undefined>, ObjectSchema<{
    readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
    readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
  }, undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"latestStoryChanges\" has internal: true but must be prefixed with \"_\"";
  } | {
    internal?: false;
  });
  readonly getStatus: QueryDefinition<ModuleGraphServiceState, UndefinedSchema<undefined>, VariantSchema<"value", [ObjectSchema<{
    readonly value: LiteralSchema<"booting", undefined>;
  }, undefined>, ObjectSchema<{
    readonly value: LiteralSchema<"ready", undefined>;
  }, undefined>, ObjectSchema<{
    readonly value: LiteralSchema<"error", undefined>;
    readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
  }, undefined>, ObjectSchema<{
    readonly value: LiteralSchema<"unavailable", undefined>;
    readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
    readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
  }, undefined>], undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"getStatus\" has internal: true but must be prefixed with \"_\"";
  } | {
    internal?: false;
  });
  readonly getGraphRevision: QueryDefinition<ModuleGraphServiceState, OptionalSchema<ObjectSchema<{
    readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
  }, undefined>, undefined>, NumberSchema<undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"getGraphRevision\" has internal: true but must be prefixed with \"_\"";
  } | {
    internal?: false;
  });
} & {
  readonly status: {
    output: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
  };
  readonly changeDetectionReadiness: {
    output: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  };
  readonly graphRevision: {
    output: NumberSchema<undefined>;
  };
  readonly fileActivityRevision: {
    output: NumberSchema<undefined>;
  };
  readonly latestStoryChanges: {
    output: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
  };
  readonly getStatus: {
    output: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
  };
  readonly getGraphRevision: {
    output: NumberSchema<undefined>;
  };
}, {
  readonly _applyGraphSnapshot: CommandDefinition<ModuleGraphServiceState, ObjectSchema<{
    readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
      [x: string]: {
        [x: string]: number;
      };
    }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
  }, undefined>, VoidSchema<undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"_applyGraphSnapshot\" is prefixed with \"_\" and must set internal: true";
  } | {
    internal: true;
  });
  readonly _applyGraphUpdate: CommandDefinition<ModuleGraphServiceState, ObjectSchema<{
    readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
  }, undefined>, VoidSchema<undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"_applyGraphUpdate\" is prefixed with \"_\" and must set internal: true";
  } | {
    internal: true;
  });
  readonly _setStatus: CommandDefinition<ModuleGraphServiceState, VariantSchema<"value", [ObjectSchema<{
    readonly value: LiteralSchema<"booting", undefined>;
  }, undefined>, ObjectSchema<{
    readonly value: LiteralSchema<"ready", undefined>;
  }, undefined>, ObjectSchema<{
    readonly value: LiteralSchema<"error", undefined>;
    readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
  }, undefined>, ObjectSchema<{
    readonly value: LiteralSchema<"unavailable", undefined>;
    readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
    readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
  }, undefined>], undefined>, VoidSchema<undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"_setStatus\" is prefixed with \"_\" and must set internal: true";
  } | {
    internal: true;
  });
  readonly _waitForSettledEngine: CommandDefinition<ModuleGraphServiceState, UndefinedSchema<undefined>, VoidSchema<undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"_waitForSettledEngine\" is prefixed with \"_\" and must set internal: true";
  } | {
    internal: true;
  });
  readonly _waitForChangeDetectionReadiness: CommandDefinition<ModuleGraphServiceState, UndefinedSchema<undefined>, VariantSchema<"status", [ObjectSchema<{
    readonly status: LiteralSchema<"pending", undefined>;
  }, undefined>, ObjectSchema<{
    readonly status: LiteralSchema<"ready", undefined>;
  }, undefined>, ObjectSchema<{
    readonly status: LiteralSchema<"unavailable", undefined>;
    readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
    readonly error: OptionalSchema<ObjectSchema<{
      readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
    }, undefined>, undefined>;
  }, undefined>, ObjectSchema<{
    readonly status: LiteralSchema<"error", undefined>;
    readonly error: ObjectSchema<{
      readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
    }, undefined>;
  }, undefined>], undefined>, {
    readonly _applyGraphSnapshot: ObjectSchema<{
      readonly storiesByFile: SchemaWithPipe<readonly [RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, RecordSchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, DescriptionAction<{
        [x: string]: {
          [x: string]: number;
        };
      }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
    }, undefined>;
    readonly _applyGraphUpdate: ObjectSchema<{
      readonly bumpedStoryFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
    }, undefined>;
    readonly _setStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly _waitForSettledEngine: UndefinedSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: UndefinedSchema<undefined>;
  }, {
    readonly _applyGraphSnapshot: VoidSchema<undefined>;
    readonly _applyGraphUpdate: VoidSchema<undefined>;
    readonly _setStatus: VoidSchema<undefined>;
    readonly _waitForSettledEngine: VoidSchema<undefined>;
    readonly _waitForChangeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  }, QueryFunctions<{
    readonly status: UndefinedSchema<undefined>;
    readonly changeDetectionReadiness: UndefinedSchema<undefined>;
    readonly graphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
    readonly fileActivityRevision: UndefinedSchema<undefined>;
    readonly latestStoryChanges: UndefinedSchema<undefined>;
    readonly getStatus: UndefinedSchema<undefined>;
    readonly getGraphRevision: OptionalSchema<ObjectSchema<{
      readonly storyFiles: ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
    }, undefined>, undefined>;
  }, {
    readonly status: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly changeDetectionReadiness: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
    readonly graphRevision: NumberSchema<undefined>;
    readonly fileActivityRevision: NumberSchema<undefined>;
    readonly latestStoryChanges: ObjectSchema<{
      readonly revision: SchemaWithPipe<readonly [NumberSchema<undefined>, DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
      readonly storyFiles: SchemaWithPipe<readonly [ArraySchema<SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
    }, undefined>;
    readonly getStatus: VariantSchema<"value", [ObjectSchema<{
      readonly value: LiteralSchema<"booting", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"error", undefined>;
      readonly error: SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
    }, undefined>, ObjectSchema<{
      readonly value: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
      readonly error: OptionalSchema<SchemaWithPipe<readonly [GenericSchema, DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
    }, undefined>], undefined>;
    readonly getGraphRevision: NumberSchema<undefined>;
  }>> & ({
    __internal_naming_error: "Operation \"_waitForChangeDetectionReadiness\" is prefixed with \"_\" and must set internal: true";
  } | {
    internal: true;
  });
} & {
  readonly _applyGraphSnapshot: {
    output: VoidSchema<undefined>;
  };
  readonly _applyGraphUpdate: {
    output: VoidSchema<undefined>;
  };
  readonly _setStatus: {
    output: VoidSchema<undefined>;
  };
  readonly _waitForSettledEngine: {
    output: VoidSchema<undefined>;
  };
  readonly _waitForChangeDetectionReadiness: {
    output: VariantSchema<"status", [ObjectSchema<{
      readonly status: LiteralSchema<"pending", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"ready", undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"unavailable", undefined>;
      readonly reason: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Why change detection cannot publish statuses, such as disabled or no git.">]>;
      readonly error: OptionalSchema<ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
      }, undefined>, undefined>;
    }, undefined>, ObjectSchema<{
      readonly status: LiteralSchema<"error", undefined>;
      readonly error: ObjectSchema<{
        readonly message: SchemaWithPipe<readonly [StringSchema<undefined>, DescriptionAction<string, "Human-readable scan failure message.">]>;
      }, undefined>;
    }, undefined>], undefined>;
  };
}, "core/module-graph">;
type ModuleGraphService = ServiceInstanceOf<typeof moduleGraphServiceDef>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/change-detection/GitDiffProvider.d.ts
interface GitDiffResult {
  changed: Set<string>;
  new: Set<string>;
}
type GitStateChangeCallback = () => void;
type GitFileSystem = {
  watch: typeof watch;
  readFile: typeof readFile;
  stat: typeof stat;
};
declare class GitDiffProvider {
  private readonly cwd;
  private readonly fileSystem;
  private repoRoot;
  private gitStateCallback;
  private branchWatcher;
  private headWatcher;
  private packedRefsWatcher;
  private watchingInitialized;
  private watchingStopped;
  constructor(cwd?: string, fileSystem?: GitFileSystem);
  getRepoRoot(): Promise<string>;
  getChangedFiles(): Promise<GitDiffResult>;
  getHeadCommit(): Promise<string>;
  isWorkingTreeClean(): Promise<boolean>;
  onGitStateChange(callback: GitStateChangeCallback): void;
  private initializeWatching;
  private attachWatcher;
  private configureBranchWatcher;
  private reconfigureBranchWatcher;
  dispose(): void;
  private stopWatching;
  private getGitDir;
  private readHeadRef;
  private runGitCommand;
  private isEnoentError;
  private toGitError;
}
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/change-detection/IndexBaselineService.d.ts
type BaselineCache = {
  get: <T = unknown>(key: string) => Promise<T | undefined>;
  set: <T = unknown>(key: string, value: T) => Promise<void>;
};
declare class IndexBaselineService {
  private readonly options;
  private baselineEntryIds;
  private initializePromise;
  private syncInFlight;
  private cache;
  constructor(options: {
    storyIndexGeneratorPromise: Promise<StoryIndexGenerator>;
    gitDiffProvider: GitDiffProvider;
    onBaselineUpdated: () => void;
    cache?: BaselineCache;
  });
  start(): Promise<void>;
  getBaselineEntryIds(): Promise<Set<string>>;
  handleGitStateChange(): Promise<void>;
  private initialize;
  private refreshBaseline;
}
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/change-detection/change-detection-service.d.ts
/**
 * Publishes change-detection story statuses to the status store. It resolves git-changed files,
 * maps them to affected stories through the `core/module-graph` open service, and emits
 * `modified`/`affected`/`new` statuses (plus index-baseline `new` entries).
 */
declare class ChangeDetectionService {
  private readonly options;
  private disposed;
  private debounceTimer;
  private scanInFlight;
  private rerunAfterCurrentScan;
  private readinessResolved;
  private statusPipelineStarted;
  private changeDetectionEnabled;
  private previousStatuses;
  private gitDiffProvider;
  private indexBaselineService;
  private unsubscribeModuleGraphStatus;
  private unsubscribeFileActivity;
  private readonly workingDir;
  private readonly debounceMs;
  constructor(options: {
    storyIndexGeneratorPromise: Promise<StoryIndexGenerator>;
    statusStore: StatusStoreByTypeId;
    gitDiffProvider?: GitDiffProvider;
    indexBaselineService?: IndexBaselineService;
    workingDir?: string;
    debounceMs?: number;
  });
  private getModuleGraph;
  private getModuleGraphIndex;
  /** True while the service is live and change-detection status publishing is enabled. */
  private isActive;
  private onGraphReady;
  private onGraphChange;
  private onGraphError;
  private onGraphUnavailable;
  private onModuleGraphStatus;
  start(enabled: boolean | undefined): void;
  /**
   * Wires the git-diff-driven status pipeline. Runs once the dependency graph is ready (so the
   * initial scan and every git-state-change scan read a populated reverse index).
   */
  private startStatusPipeline;
  dispose(): Promise<void>;
  private scheduleScan;
  private scan;
  private buildStatuses;
  private getGitDiffProvider;
  private getIndexBaselineService;
  private applyStatusStorePatch;
  private resolveReadiness;
}
//#endregion
//#region code/core/.dts-emit/code/core/src/shared/open-service/services/module-graph/server.d.ts
declare function resolveChangeDetectionAdapter(adapter: ChangeDetectionAdapter | null | undefined): void;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/get-builders.d.ts
declare function getBuilders({
  presets
}: Options): Promise<Builder<unknown>[]>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/get-server-channel.d.ts
/**
 * Prepare the UniversalStore singleton for a server realm without a dev server (the `storybook
 * tools` CLI). Leader stores only become ready — and accept writes — once prepared, which the dev
 * server does above with its live channel; a headless realm has no followers to synchronize, so a
 * transport-less channel is correct. The channel is returned so the caller can hand the same bus
 * to configuration loading: stores only hear events on the channel they were prepared with, and
 * addon responders (addon-vitest's test runner among them) relay child-process store events onto
 * the channel their preset hooks received. Lives here (not in the CLI) so the preparation call
 * stays next to the class it configures instead of reaching through an internal static from
 * another entry, which the published type declarations strip.
 */
declare function prepareHeadlessUniversalStores(): Channel;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/apply-services-preset-once.d.ts
declare global {
  var STORYBOOK_SERVICES_PRESET_PROMISE: Promise<void> | undefined;
}
/**
 * Applies the 'services' preset, but only once, as the services must not be registered multiple times.
 *
 * This is to ensure that we don't apply the preset multiple times in dev mode, which can lead to issues with the telemetry service and other services that are meant to be singletons.
 */
/** Clears the one-shot so a later configuration load can apply the `services` preset again. */
declare function resetServicesPresetOnce(): void;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/stores/test-provider.d.ts
declare function createServerTestProviderStore(leader: boolean): {
  getTestProviderStoreById: (testProviderId: TestProviderId) => TestProviderStoreById;
  fullTestProviderStore: {
    settingsChanged: () => void;
    onRunAll: (listener: () => void) => () => void;
    onClearAll: (listener: () => void) => () => void;
  } & {
    getFullState: UniversalStore<TestProviderStateByProviderId, TestProviderStoreEvent>['getState'];
    setFullState: UniversalStore<TestProviderStateByProviderId, TestProviderStoreEvent>['setState'];
    onSettingsChanged: (listener: (testProviderId: TestProviderId) => void) => () => void;
    runAll: () => void;
    clearAll: () => void;
  };
  universalTestProviderStore: UniversalStore<TestProviderStateByProviderId, TestProviderStoreEvent>;
};
type TestProviderStoreBundle = ReturnType<typeof createServerTestProviderStore>;
declare const getTestProviderStoreById: TestProviderStoreBundle['getTestProviderStoreById'];
declare const fullTestProviderStore: TestProviderStoreBundle['fullTestProviderStore'];
declare const universalTestProviderStore: TestProviderStoreBundle['universalTestProviderStore'];
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/ghost-stories/get-candidates.d.ts
declare function getComponentCandidates({
  sampleSize,
  globPattern,
  cwd
}?: {
  sampleSize?: number;
  globPattern?: string; /** Working directory for glob. Defaults to process.cwd(). */
  cwd?: string;
}): Promise<{
  candidates: string[];
  error?: string;
  globMatchCount: number;
  analyzedCount?: number;
  avgComplexity?: number;
}>;
//#endregion
//#region code/core/.dts-emit/code/core/src/shared/utils/test-result-types.d.ts
interface StoryTestResult {
  storyId: string;
  status: 'PASS' | 'FAIL' | 'PENDING';
  error?: string;
  stack?: string;
  /** Whether the story rendered to an empty/invisible DOM element */
  emptyRender?: boolean;
}
/**
 * A `StoryTestResult` augmented with the timestamp at which it was recorded.
 * Used by the agent self-healing flow to persist the most recent outcome
 * per story across runs (in cache only — never sent in telemetry).
 */
interface StoryTestResultHistoryEntry extends StoryTestResult {
  timestamp: number;
}
type StoryTestResultHistory = Record<string, StoryTestResultHistoryEntry>;
interface CategorizedError {
  category: string;
  count: number;
  uniqueCount: number;
  matchedDependencies: string[];
}
/**
 * Outcome of the `CssCheck` story — a story (id suffix `--css-check`)
 * whose `play` asserts a component-specific computed style via
 * `getComputedStyle`. Distinguishes "component mounted" from "the
 * user's CSS actually loaded".
 *
 * - `'pass'`    — a `CssCheck` story ran and passed.
 * - `'fail'`    — a `CssCheck` story ran and failed.
 * - `'not-run'` — no pass/fail signal available: either no `CssCheck`
 *                 story is in the suite, or the story existed but was
 *                 not executed (skipped, pending, todo, filtered out).
 *
 * Only the three-valued enum is emitted — no storyId or component
 * name — so no user-authored data enters telemetry.
 */
type CssCheckOutcome = 'pass' | 'fail' | 'not-run';
interface TestRunAnalysis {
  /** Stats for the current run (only stories executed in this run). */
  total: number;
  passed: number;
  passedButEmptyRender: number;
  successRate: number;
  successRateWithoutEmptyRender: number;
  uniqueErrorCount: number;
  categorizedErrors: Record<string, CategorizedError>;
  cssCheck: CssCheckOutcome;
  /**
   * Stats accumulated across runs: for every story we've ever seen, we
   * keep the most recent outcome (by timestamp). Only emitted by the
   * agent self-healing flow, which is the only consumer that persists
   * a per-story history in the Storybook cache.
   */
  cumulativeTotal?: number;
  cumulativePassed?: number;
  cumulativePassedButEmptyRender?: number;
  cumulativeSuccessRate?: number;
  cumulativeSuccessRateWithoutEmptyRender?: number;
  cumulativeUniqueErrorCount?: number;
  cumulativeCategorizedErrors?: Record<string, CategorizedError>;
  cumulativeCssCheck?: CssCheckOutcome;
}
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/ghost-stories/types.d.ts
interface TestRunSummary {
  duration?: number;
  summary?: TestRunAnalysis;
  runError?: string;
}
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/ghost-stories/run-story-tests.d.ts
/**
 * Run ghost stories: execute vitest on component file paths to auto-generate
 * and test stories that don't exist on disk.
 *
 * @param componentFilePaths - Absolute paths to component files to test.
 * @param options.cwd - Working directory for vitest. Defaults to process.cwd().
 */
declare function runStoryTests(componentFilePaths: string[], options?: {
  cwd?: string;
  ghostRun?: boolean;
}): Promise<TestRunSummary>;
//#endregion
//#region code/core/.dts-emit/code/core/src/core-server/utils/server-address.d.ts
interface PortOptions {
  exactPort?: boolean;
}
declare const getServerPort: (port?: number, {
  exactPort
}?: PortOptions) => Promise<number>;
//#endregion
//#region code/core/.dts-emit/code/core/src/cli/skills/manifest-status.d.ts
type ManifestFeatures = {
  componentsManifest?: boolean;
  experimentalComponentsManifest?: boolean;
  experimentalDocgenServer?: boolean;
};
type ManifestStatus = {
  available: boolean;
  hasManifests: boolean;
  hasFeatureFlag: boolean;
  /**
   * `experimentalDocgenServer` mode: the split/ref manifest format served from the
   * open services. In dev, `/manifests/*.json` is 404'd by core, so the addon reads
   * manifest data in-process instead of fetching it.
   */
  docgenServer: boolean;
};
declare const getManifestStatus: (options: Options$1) => Promise<ManifestStatus>;
//#endregion
//#region code/core/.dts-emit/code/core/src/cli/skills/availability.d.ts
interface ToolAvailability {
  /** The `core/module-graph` open service is registered/resolvable. Gates `stories-find-by-component`. */
  moduleGraphSupported: boolean;
  /** The `changeDetection` feature flag is enabled. Gates `stories-changed`. */
  changeDetectionEnabled: boolean;
  /** The `experimentalReview` AND `changeDetection` feature flags are enabled. Gates `review-create` for direct MCP clients. */
  reviewEnabled: boolean;
  /**
   * Same gate for the `storybook ai` CLI channel (the Claude/Codex plugins),
   * where review is on by default: `changeDetection` on and `experimentalReview`
   * not explicitly `false`. Gates `review-create` for CLI-marked requests and
   * everything derived from the storybook-ai metadata preset.
   */
  reviewEnabledForCli: boolean;
  /** Component-manifest feature is on AND manifests were found. Gates the `docs` toolset. */
  docsEnabled: boolean;
  /**
   * Docs gate for the `storybook tools` CLI channel, which reads manifests in-process and so only
   * needs manifests to be producible — not the `componentsManifest` opt-in that gates MCP.
   */
  docsEnabledForCli: boolean;
  /** Any component manifests were found (drives the docs "why disabled" copy). */
  docsHasManifests: boolean;
  /** The component-manifest feature flag is enabled (drives the docs "why disabled" copy). */
  docsFeatureEnabled: boolean;
  /**
   * `@storybook/addon-vitest` is enabled (not merely installed), matching the condition under
   * which it registers the `test` toolset. Gates the `test` toolset (`test-run`).
   */
  testSupported: boolean;
  /** `@storybook/addon-a11y` is enabled. Gates the accessibility sub-feature of `test-run`. */
  a11yEnabled: boolean;
  /** `experimentalDocgenServer` mode: read manifest data in-process from the open services. */
  docgenServer: boolean;
}
interface GetToolAvailabilityOptions {
  /**
   * Pre-resolved `features` preset. Pass it to avoid re-applying the preset and
   * risking a different snapshot than the caller already resolved.
   */
  features?: (ManifestFeatures & {
    changeDetection?: boolean;
    experimentalReview?: boolean;
  }) | undefined;
  /**
   * Pre-resolved module-graph support. The live MCP server should omit this so it
   * probes the registered open service. Serverless metadata can pass a builder-level
   * capability check because no dev-server service exists in that process.
   */
  moduleGraphSupported?: boolean | undefined;
}
/**
 * Composed Storybooks with component manifests can back docs tools even when the
 * local Storybook has no component manifest. Use this before feeding
 * availability into the shared tool registry so live MCP registration and
 * serverless AI metadata make the same docs-tool decision.
 */
declare function getEffectiveToolAvailability(availability: ToolAvailability, {
  multiSource
}?: {
  multiSource?: boolean;
}): ToolAvailability;
/**
 * True iff the `core/module-graph` open service is registered in this process — reflects
 * registration rather than mere runtime presence so tool gating/badging can't drift from the
 * service the dev server actually resolves (a builder may ship change detection but not
 * register the service, e.g. without change detection wired up).
 */
declare function isModuleGraphSupported(): Promise<boolean>;
declare function isModuleGraphSupportedByBuilder(options: Pick<Options$1, 'presets'>): Promise<boolean>;
/**
 * Single source of truth for the runtime gates that decide whether each tool is
 * registered (and how the landing page badges it).
 *
 * Every dynamic gate lives here — the dependency graph, the change-detection
 * pipeline, review, the component manifest (docs), addon-vitest (test) and the
 * accessibility sub-feature — so the MCP server (which registers the tools) and
 * the browser landing page (which shows enabled/disabled badges) can never drift
 * apart. Add new gates here rather than computing them ad-hoc at a call site.
 */
declare function getToolAvailability(options: Options$1, {
  features,
  moduleGraphSupported: moduleGraphSupportedOverride
}?: GetToolAvailabilityOptions): Promise<ToolAvailability>;
//#endregion
//#region code/core/.dts-emit/code/core/src/cli/skills/addon-a11y.d.ts
/**
 * Check if @storybook/addon-a11y is enabled in the Storybook configuration.
 */
declare function isAddonA11yEnabled(options: Options$1): Promise<boolean>;
//#endregion
//#region code/core/.dts-emit/code/core/src/cli/skills/addon-vitest.d.ts
/**
 * Whether `@storybook/addon-vitest` is enabled in this project.
 *
 * Reads the `isAddonVitestEnabled` marker that addon's preset exports, so this is true exactly
 * when its presets loaded — the same condition under which its `services` hook registers the
 * `test` toolset. Installed-but-not-enabled (a hoisted monorepo dependency, or an addon removed
 * from `main.ts` without uninstalling) must read false: the toolset never registers there, so
 * offering the tool would make every test call fail.
 */
declare function isAddonVitestEnabled(options: Options$1): Promise<boolean>;
//#endregion
//#region code/core/.dts-emit/code/core/src/cli/skills/inputs.d.ts
type SkillInputs = ToolAvailability & {
  framework: string;
  renderer?: string;
};
/**
 * The one probing path for skill-content assembly: everything the pure builders need, resolved
 * from the target Storybook's presets. Both the skills CLI and addon-mcp fill builder inputs from
 * this, so the two channels cannot drift.
 */
declare function resolveSkillInputs(options: Options$1, opts?: GetToolAvailabilityOptions): Promise<SkillInputs>;
//#endregion
//#region code/core/.dts-emit/code/core/src/cli/skills/review-status.d.ts
type ReviewStatus = {
  available: boolean;
  /**
   * Review gate for the `storybook ai` CLI channel (the Claude/Codex plugins):
   * on by default, `experimentalReview: false` is the explicit opt-out.
   */
  availableForCli: boolean;
  hasFeatureFlag: boolean;
};
interface GetReviewStatusOptions {
  features?: {
    changeDetection?: boolean;
    experimentalReview?: boolean;
  } | undefined;
}
declare const getReviewStatus: (options: Options$1, {
  features
}?: GetReviewStatusOptions) => Promise<ReviewStatus>;
//#endregion
//#region code/core/.dts-emit/code/core/src/shared/utils/analyze-test-results.d.ts
/**
 * Analyze a list of story test results and produce a TestRunAnalysis with pass/fail counts, success
 * rates, empty render detection, and categorized errors.
 *
 * @param results Story results from the current run.
 * @param cumulativeResults Optional aggregated results across runs (latest outcome per story).
 *   Only the agent self-healing flow tracks history and passes this; when omitted no
 *   `cumulative*` fields are emitted.
 */
declare function analyzeTestResults(results: StoryTestResult[], cumulativeResults?: StoryTestResult[]): TestRunAnalysis;
//#endregion
//#region code/core/.dts-emit/code/core/src/shared/utils/to-story-test-result.d.ts
interface VitestLikeReport {
  type: string;
  result?: {
    emptyRender?: boolean;
  } | unknown;
}
interface VitestLikeError {
  message?: string;
  stack?: string;
}
interface VitestLikeInput {
  storyId: string | undefined;
  /** Raw vitest status, e.g. 'passed' | 'failed' | 'skipped' | 'pending' | 'running' | ... */
  statusRaw: string | undefined;
  errors?: readonly VitestLikeError[];
  reports?: readonly VitestLikeReport[];
}
/**
 * Convert a Vitest-like input (either a JSON reporter assertion or a runtime TestCase) into a
 * StoryTestResult. Returns null when the input has no storyId — callers can use this to skip
 * non-story tests.
 */
declare function toStoryTestResult(input: VitestLikeInput): StoryTestResult | null;
//#endregion
export { BuildIndexOptions, BuildStaticStandaloneOptions, type ChangeDetectionAdapter, ChangeDetectionFailureError, ChangeDetectionService, ChangeDetectionUnavailableError, type Command, type CommandCtx, type CommandDefinition, type ComponentArgTypesData, type DocsAccess, type DocsManifestEntry, type DocsManifestRefEntry, type ChangeDetectionReadiness as Experimental_ChangeDetectionReadiness, type FileChangeEvent, type FoundStory, type GenerateStoryOptions, type GenerateStoryResult, type GetReviewStatusOptions, type GetToolAvailabilityOptions, type ImportEdge, type ImportParser, type ImportParserContext, type JsonRef, MDX_SERVICE_ID, type ManifestFeatures, type ManifestStatus, type MdxDocPayload, type MdxError, type MdxPayload, type MdxServiceContract, type ModuleGraphService, type ModuleResolveConfig, type NotFoundStory, type OperationDescriptor, type ParseFileArgs, type PreviewStoriesOutput, type Query, type QueryCtx, type QueryDefinition, type ResolvedDocsEntry, type ReviewStatus, type RuntimeService, type SchemaDescriptor, type ServerServiceRegistration, type ServiceDefinition, type ServiceDescriptor, type ServiceInstance, type ServiceRegistrationOptions, type ServiceSummary, type SkillInputs, type StoryIndexAccess, StoryIndexGenerator, type StoryInput, type StoryTestResult, type StoryTestResultHistory, type StoryTestResultHistoryEntry, Tag, type ToolAvailability, analyzeMdx, analyzeTestResults, build, buildDevStandalone, buildIndex, buildIndexStandalone, buildStaticStandalone, createDocsToolset, createLocalDocsAccess, createManifestDocsAccess, createServiceDocsAccess, createStoriesToolset, describeService, emptyManifests, MockUniversalStore as experimental_MockUniversalStore, UniversalStore as experimental_UniversalStore, defineService as experimental_defineService, getChangeDetectionReadiness as experimental_getChangeDetectionReadiness, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, loadStorybook as experimental_loadStorybook, registerService as experimental_registerService, resetChangeDetectionReadiness as experimental_resetChangeDetectionReadiness, resetServicesPresetOnce as experimental_resetServicesPresetOnce, setChangeDetectionHost as experimental_setChangeDetectionHost, findStoryIds, generateStoryFile, getBuilders, getComponentCandidates, getEffectiveToolAvailability, getErrorLevel, getManifestStatus, getPreviewBodyTemplate, getPreviewHeadTemplate, getReviewStatus, getServerPort, getService$1 as getService, getStoriesPathsFromConfig, getToolAvailability, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, isAddonA11yEnabled, isAddonVitestEnabled, isModuleGraphSupported, isModuleGraphSupportedByBuilder, listServices, loadManifests, mapStaticDir, mdxManifestRef, mdxQueryStaticPath, mdxStaticStorePath, type moduleGraphServiceDef, prepareHeadlessUniversalStores, registerToolset, resolveChangeDetectionAdapter, resolveOnboardingInitialPath, resolveSkillInputs, reviewToolset, runStoryTests, sendTelemetryError, storyInputArraySchema, toStoryTestResult, withTelemetry };