import type { TSESLint, TSESTree } from "@typescript-eslint/utils"; /** Direct entry in a top-level Remark `plugins` array. */ export type RemarkPluginArrayEntry = Readonly<{ arrayExpression: Readonly; element: Readonly; }>; /** Static string specifier found in a Remark `plugins` declaration. */ export type RemarkPluginSpecifierReference = Readonly<{ arrayEntry?: RemarkPluginArrayEntry; literal: Readonly; removalTarget: RemarkPluginSpecifierRemovalTarget; }>; type ArrayElement = Exclude; type RemarkPluginSpecifierRemovalTarget = Readonly<{ arrayExpression: Readonly; element: Readonly; kind: "arrayElement"; } | { kind: "objectProperty"; objectExpression: Readonly; property: Readonly; }>; /** * Collect direct entries from a top-level Remark `plugins` array. * * @param pluginsProperty - Candidate `plugins` property. * * @returns Non-hole direct array entries. */ export declare const getRemarkPluginArrayEntries: (pluginsProperty: Readonly) => readonly RemarkPluginArrayEntry[]; /** * Collect statically analyzable plugin specifier string literals from a Remark * `plugins` property. * * Supports top-level string declarations, direct string array entries, and * tuple entries such as `["remark-toc", { heading: "contents" }]`. * * @param options - Config object and its `plugins` property. * * @returns Collected specifier references. */ export declare const getRemarkPluginSpecifierReferences: (options: Readonly<{ configObject: Readonly; pluginsProperty: Readonly; }>) => readonly RemarkPluginSpecifierReference[]; /** * Build a fixer for removing the declaration that owns a plugin specifier. * * @param options - Removal target and fixer. * * @returns Fix removing the specifier declaration. */ export declare const createFixToRemovePluginSpecifier: (options: Readonly<{ fixer: TSESLint.RuleFixer; removalTarget: RemarkPluginSpecifierRemovalTarget; }>) => TSESLint.RuleFix; export {}; //# sourceMappingURL=remark-config-plugin-specifiers.d.ts.map