astro-ghostcms/.pnpm-store/v3/files/50/9b4bb80d4d7c6b28a061ced6e7a...

15 lines
814 B
Plaintext

import type { RuleListener, RuleContext, RuleModule } from "../types";
import type * as ESTree from "estree";
import type { AST as AstroAST } from "astro-eslint-parser";
export declare function defineWrapperListener(coreRule: RuleModule, context: RuleContext, proxyOptions: {
createListenerProxy?: (listener: RuleListener) => RuleListener;
}): RuleListener;
export declare function getProxyNode(node: {
type: string;
}, properties: any): any;
export declare function buildProxyListener(base: RuleListener, convertNode: (node: AstroAST.AstroNode | (ESTree.Node & {
parent: AstroAST.AstroNode | ESTree.Node | null;
})) => any): RuleListener;
export declare function newProxy<T extends object>(target: T, ...propsArray: Partial<T>[]): T;
export declare function getCoreRule(ruleName: string): RuleModule;