/**
 * Pure Storybook CSF parsing surface.
 *
 * Everything here operates on file *content*, never the filesystem, so it runs
 * identically in the CLI (local fs), the Cloud scan (GitHub API content), and
 * the browser. The CLI's migrate tool wraps these with fs-backed readers.
 */

export {
  parseStoryContent,
  parseStoryFacts,
  storyNameToTitle,
  extractCategory,
  __testing,
} from "./parse-story.js";
export {
  parseStorybookConfigContent,
  DEFAULT_STORY_PATTERNS,
  STORYBOOK_CONFIG_FILENAMES,
} from "./parse-config.js";
export { isStoryFilePath, storyFileBasename } from "./story-paths.js";
export { discoverStorybook } from "./discover.js";
export { mergeStoryFactsIntoUcfs } from "./merge-ucf.js";
export {
  applyStorybookEnrichmentSeed,
  projectStoryEvidenceToEnrichmentSeed,
} from "./enrichment.js";
export type { MergeStoryFactsIntoUcfsResult, UnresolvedStoryEvidence } from "./merge-ucf.js";
export type {
  ApplyStorybookEnrichmentSeedResult,
  StorybookEnrichmentSeed,
  StorybookSeedableEnrichment,
  StorybookSeededVariant,
  StorybookSeedProvenance,
  StorybookUsageExample,
} from "./enrichment.js";
export type {
  DiscoverStorybookInput,
  StorybookComponentFacts,
  StorybookConfigFacts,
  StorybookDiscovery,
  StorybookStory,
  StorybookVariant,
} from "./discover.js";
export type {
  ParsedMeta,
  ParsedArgType,
  ParsedStory,
  ParsedStoryFile,
  StoryComponentImport,
  StorybookConfig,
  StoryFacts,
  StoryFactsDiagnostic,
  StoryFactsRung,
  StoryFactsStory,
} from "./types.js";
