import { ESLintUtils } from '@typescript-eslint/utils'; /** * @remarks * It is easier to to do this in an ESLint rule rather than at build-time. * Reason: * - TypeScript does not have a syntax for retrieving the setter type * (https://github.com/microsoft/TypeScript/issues/60162) * - While we could copy the setter type from bound setter at build-time, * copying types between files is tricky because of need for adding correct * imports for anything referenced in that type and not already included in * current file. Doing so in automated way is quite tricky, slow and * error-prone. * * Instead, this rule will require developer to explicitly provide the setter * type. Then we can use it as is in the .d.ts file. The getter type can be * retrieved easily via `typeof` operator. */ declare const _default: ESLintUtils.RuleModule<"explicitSetterType" | "addExplicitSetterType", [], import('../../utils/makePlugin.ts').CommonDocs, ESLintUtils.RuleListener>; export default _default;