1 | import type FileState from '../FileState.js';
|
2 | import type { ComponentNodePath, ResolverClass } from './index.js';
|
3 | interface FindAnnotatedDefinitionsResolverOptions {
|
4 | annotation?: string;
|
5 | }
|
6 | /**
|
7 | * Given an AST, this function tries to find all react components which
|
8 | * are annotated with an annotation
|
9 | */
|
10 | export default class FindAnnotatedDefinitionsResolver implements ResolverClass {
|
11 | annotation: string;
|
12 | constructor({ annotation, }?: FindAnnotatedDefinitionsResolverOptions);
|
13 | resolve(file: FileState): ComponentNodePath[];
|
14 | }
|
15 | export {};
|