import type { StorybookCsfFile, StorybookCsfParseResult } from '../storybook-internals'; type UnsupportedCsfNextSource = 'stats' | 'internal' | 'ast' | 'mixed-factory-error'; export type UnsupportedCsfNextDetection = { filePath: string; exports: string[]; mixed: boolean; source: UnsupportedCsfNextSource; }; export declare class UnsupportedCsfNextError extends Error { readonly detection: UnsupportedCsfNextDetection; readonly cause?: unknown; constructor(detection: UnsupportedCsfNextDetection, cause?: unknown); } export declare function detectUnsupportedCsfNext(csf: StorybookCsfFile, parsed: StorybookCsfParseResult | undefined, csfFilePath: string, fallbackFactoryStoryExports?: string[]): UnsupportedCsfNextDetection | undefined; export declare function createMixedFactoryDetection(csfFilePath: string, fallbackFactoryStoryExports: string[]): UnsupportedCsfNextDetection; export declare function isMixedFactoryError(error: unknown): boolean; export declare function getFactoryStoryExportsFromAst(csf: StorybookCsfFile): string[]; export {};