sicua
Version:
A tool for analyzing project structure and dependencies
25 lines (24 loc) • 921 B
TypeScript
import { ComponentRelation } from "../../../types";
/**
* Helper class to filter out non-components from component relations
* Used in SEO analyzers to avoid treating utility functions as components
*/
export declare class ComponentFilter {
/**
* Check if a ComponentRelation represents an actual React component
* vs utility functions, hooks, or event handlers
*/
static isActualComponent(component: ComponentRelation): boolean;
/**
* Filter an array of ComponentRelations to only include actual React components
*/
static filterComponents(components: ComponentRelation[]): ComponentRelation[];
/**
* Simple heuristic to check if content contains JSX return patterns
*/
private static hasJSXReturnPattern;
/**
* Check if a component name follows React component naming conventions
*/
static followsComponentNaming(name: string): boolean;
}