type AstNode = any; /** * ESLint rule definition for prefer-no-side-effects-in-jsdoc. */ export interface UtilPreferNoSideEffectsInJsdocRuleDefinition { readonly meta: { readonly type: 'suggestion'; readonly fixable: 'code'; readonly docs: { readonly description: string; readonly recommended: boolean; }; readonly messages: { readonly preferJsdocPlacement: string; readonly missingImplAnnotationOverloaded: string; }; readonly schema: readonly object[]; }; create(context: { options: unknown[]; report: (descriptor: { node: AstNode; messageId: string; data?: Record | undefined; fix?: ((fixer: AstNode) => AstNode | AstNode[]) | undefined; }) => void; sourceCode: AstNode; }): Record void>; } /** * ESLint rule that flags functions with both a JSDoc block and a separate * `// @__NO_SIDE_EFFECTS__` (or block-comment equivalent) line comment between * the JSDoc and the declaration. Auto-fix migrates the annotation into the JSDoc * (last tag before the closing) and removes the standalone comment, since the * JSDoc form is the workspace's preferred placement. * * Unlike `require-no-side-effects`, this rule does not require the function to * be tagged as a factory — it triggers purely on the presence of an existing * line-comment annotation alongside a JSDoc, so it can sweep all 688 historical * annotations through `eslint --fix`. * * Overloaded functions are a special case: TypeScript erases overload signatures * during emit, so a JSDoc tag on the first overload doesn't reach the bundled JS. * The `// @__NO_SIDE_EFFECTS__` line comment immediately above the implementation * is the only annotation that survives compilation, so this rule preserves it * (and treats line comments between overloads — but not directly above the impl — * as ordinary orphans to migrate). */ export declare const UTIL_PREFER_NO_SIDE_EFFECTS_IN_JSDOC_RULE: UtilPreferNoSideEffectsInJsdocRuleDefinition; export {};