UNPKG

611 BTypeScriptView Raw
1import type FileState from '../FileState.js';
2import type { ComponentNodePath, Resolver, ResolverClass } from './index.js';
3declare enum ChainingLogic {
4 ALL = 0,
5 FIRST_FOUND = 1
6}
7interface ChainResolverOptions {
8 chainingLogic?: ChainingLogic;
9}
10export default class ChainResolver implements ResolverClass {
11 resolvers: Resolver[];
12 options: ChainResolverOptions;
13 static Logic: typeof ChainingLogic;
14 constructor(resolvers: Resolver[], options: ChainResolverOptions);
15 private resolveFirstOnly;
16 private resolveAll;
17 resolve(file: FileState): ComponentNodePath[];
18}
19export {};