import { Recipe } from "../../recipe"; import { TreeVisitor } from "../../visitor"; import { ExecutionContext } from "../../execution"; /** * Converts ternary expressions that check for null/undefined into optional chaining. * * Examples: * - `foo ? foo.bar : undefined` becomes `foo?.bar` * - `foo ? foo.bar : null` becomes `foo?.bar ?? null` * - `obj ? obj.method() : undefined` becomes `obj?.method()` * - `arr ? arr[0] : undefined` becomes `arr?.[0]` */ export declare class PreferOptionalChain extends Recipe { name: string; displayName: string; description: string; editor(): Promise>; } //# sourceMappingURL=prefer-optional-chain.d.ts.map