/** * @packageDocumentation * Shared safety checks for value-expression autofixes. */ import { type TSESTree } from "@typescript-eslint/utils"; /** * Check whether a parent node is a transparent expression wrapper for `child`. */ export declare const isTransparentExpressionWrapper: (parent: Readonly, child: Readonly) => boolean; /** * Detect whether an expression is a chain/optional-call/optional-member shape. */ export declare const isOptionalChainExpression: (node: Readonly) => boolean; /** * Determine whether an expression occupies a direct return position. */ export declare const isDirectReturnLikeExpressionPosition: (node: Readonly) => boolean; /** * Guard array index-to-helper rewrites known to be type-sensitive. */ export declare const isArrayIndexReadAutofixSafe: (node: Readonly) => boolean; /** * Determine whether an expression is safe to evaluate fewer times after a * rewrite that collapses duplicate evaluations. * * @remarks * Expressions such as member access or function calls can change runtime * behavior when duplicated evaluation sites are rewritten to a single helper * call. This helper intentionally accepts only stable, exception-free * primitives and identifiers. */ export declare const isRepeatablyEvaluableExpression: (node: Readonly) => node is TSESTree.Expression; //# sourceMappingURL=value-rewrite-autofix-safety.d.ts.map