import { ReactElement, ReactNode } from 'react'; /** * Detector callback: given the React element whose `displayName` matched the * registry key, return the partial feature-prop record to auto-enable the * corresponding plugin. Return `undefined` to skip. * * @typeParam TFeatures - Adapter `FeatureProps` shape. */ export type ChildFeatureDetector> = (element: ReactElement) => Partial | undefined; /** * Install a child-feature detector keyed by React `displayName`. Re-registering * the same displayName replaces the previous detector (HMR-friendly). Called * by feature secondary entries on import. * * @internal Plugin API */ export declare function registerChildFeatureDetector>(displayName: string, detector: ChildFeatureDetector): void; /** * Scan `children` and merge every matching detector's output into a single * partial feature-prop record. Later children override earlier ones for the * same feature key — same precedence the inline `detectChildComponentFeatures` * had before extraction. * * @internal `` `featureProps` memo use only. */ export declare function detectChildFeatures>(children: ReactNode): Partial; /** * Test-only: clear all registered detectors so specs assert in isolation. * * @internal */ export declare function clearChildFeatureDetectors(): void; //# sourceMappingURL=child-feature-detector.d.ts.map