import { type SymbolDeclaringInterface, type TypeInfo } from '@knapsack/spec-utils'; import { type DefaultValue } from './extract-default-props.mjs'; export type PropTypesTypeInfo = { type: string; tsRawType?: string; default?: string | number | boolean | null | Record | unknown[]; enum?: (string | number | boolean | null)[]; items?: PropTypesTypeInfo; properties?: Record; tsType?: string; tsMetadata?: null; }; export type ComponentProps = Record; export type SlotInfo = { title: string; description?: string; }; export type ComponentAnalysis = { props: ComponentProps; slots: SlotInfo[]; isPropTypes?: boolean; }; /** * Analyzes a React component to extract its props and slots information */ export declare function analyzeComponent({ fileName, exportName, pkgPathAliases, resolveFromDir, extractDefaults, }: { fileName: string; exportName?: string; pkgPathAliases?: Record; resolveFromDir?: string; /** * Recover source-level default prop values (the extra syntactic source read). On by * default; set false to skip it — useful for perf-sensitive contexts and for * benchmarking the cost of default extraction in isolation. */ extractDefaults?: boolean; }): Promise; //# sourceMappingURL=react-component-analyzer.d.mts.map