import type { RuleModule } from '../../ts-eslint/Rule'; import * as BaseRuleTester from '../../ts-eslint/RuleTester'; import type { DependencyConstraint } from './dependencyConstraints'; declare const TS_ESLINT_PARSER = "@typescript-eslint/parser"; type RuleTesterConfig = Omit & { parser: typeof TS_ESLINT_PARSER; /** * Constraints that must pass in the current environment for any tests to run */ dependencyConstraints?: DependencyConstraint; }; interface InvalidTestCase> extends BaseRuleTester.InvalidTestCase { /** * Constraints that must pass in the current environment for the test to run */ dependencyConstraints?: DependencyConstraint; } interface ValidTestCase> extends BaseRuleTester.ValidTestCase { /** * Constraints that must pass in the current environment for the test to run */ dependencyConstraints?: DependencyConstraint; } interface RunTests> { readonly valid: readonly (ValidTestCase | string)[]; readonly invalid: readonly InvalidTestCase[]; } type AfterAll = (fn: () => void) => void; declare class RuleTester extends BaseRuleTester.RuleTester { #private; /** * If you supply a value to this property, the rule tester will call this instead of using the version defined on * the global namespace. */ static get afterAll(): AfterAll; static set afterAll(value: AfterAll | undefined); private get staticThis(); constructor(baseOptions: RuleTesterConfig); private getFilename; run>(name: string, rule: RuleModule, testsReadonly: RunTests): void; } /** * Simple no-op tag to mark code samples as "should not format with prettier" * for the internal/plugin-test-formatting lint rule */ declare function noFormat(raw: TemplateStringsArray, ...keys: string[]): string; export { noFormat, RuleTester }; export type { InvalidTestCase, ValidTestCase, RunTests }; //# sourceMappingURL=RuleTester.d.ts.map