/** Literal default values we can carry into the spec's `default`. */ export type DefaultValue = string | number | boolean | null; /** * Source-level default prop values for a React component. TypeScript TYPES don't carry * defaults — they live in the implementation (destructuring defaults or `defaultProps`), * which `analyzeExport` (type-based) and `react-docgen`'s default handler (param-only) * miss. This does a lightweight, SYNTACTIC AST walk (no type-check, no program) of the * source file to recover them for the three real-world shapes: * * 1. param destructuring `(props: P) => ({ size = 'md' }) ...` ← also `function` * 2. body destructuring `(props: P) => { const { size = 'md' } = props; ... }` * 3. static defaultProps `Comp.defaultProps = { size: 'md' }` * * Only string / number / boolean / null literal defaults are returned (a default of a * function, identifier, or object isn't a meaningful form value, so it's skipped). * Best-effort: any failure yields `{}` rather than throwing — defaults are an * enhancement, never a reason to fail inference. */ export declare function extractDefaultProps({ fileName, exportName, resolveFromDir, pkgPathAliases, }: { fileName: string; exportName?: string; resolveFromDir: string; pkgPathAliases?: Record; }): Promise>; //# sourceMappingURL=extract-default-props.d.mts.map