import type { AllowDisallowPatterns, Docs, FilePattern, Matcher, RegexpPattern, RuleListeners, Selector } from "./types"; import { Casing, TypeGroup } from "./types"; import type { TSESTree } from "@typescript-eslint/utils"; import type { unknowns } from "typescript-misc"; import { fn, is } from "typescript-misc"; import type { RuleListener, RuleModule } from "@typescript-eslint/utils/dist/ts-eslint"; import type { MinimatchOptions } from "minimatch"; export declare const isCasing: is.Guard; export declare const isFilePattern: is.Guard; export declare const isRegexpPattern: is.Guard; export declare const isSelector: is.Guard; export declare const isTypeGroup: is.Guard; export declare const isTypeGroups: is.Guard; export declare const projectRoot: string; /** * Creates file matcher. * @param pattern - Pattern. * @param defVal - Default value. * @param options - Minimatch options. * @returns Matcher. */ export declare function createFileMatcher(pattern: AllowDisallowPatterns | FilePattern, defVal: boolean, options: Readonly): Matcher; /** * Creates matcher. * @param pattern - RegExp pattern(s). * @param defVal - Default value. * @returns Matcher. */ export declare function createRegexpMatcher(pattern: RegexpPattern, defVal: boolean): Matcher; /** * Merges listeners. * @param listeners - Listeners. * @returns Merged listeners. */ export declare function mergeListeners(...listeners: RuleListeners): RuleListener; /** * Returns string representing node. * @param node - Node. * @param defVal - Default value. * @returns String representing node. */ export declare function nodeText(node: TSESTree.Node, defVal: fn.ValueGenerator | string): string; /** * Assembles selector. * @param raw - Raw selector. * @returns Selector. */ export declare function selector(raw: Selector): string; /** * Sets casing. * @param str - String. * @param casing - Casing. * @returns Formatted string. */ export declare function setCasing(str: string, casing?: Casing): string; /** * Wraps third-party rule. * @param options - Options. * @returns Wrapped rule. */ export declare function wrapRule(options: WrapRuleOptions): RuleModule; export interface WrapRuleOptions { readonly docs: Docs; readonly options: O; readonly rule: RuleModule; } //# sourceMappingURL=misc.d.ts.map