import * as BabelTypes from "@babel/types"; import { Visitor, NodePath } from "@babel/traverse"; export declare const RUNTIME_IMPORT = "babel-plugin-ts-optchain/lib/runtime"; export interface PluginOptions { opts?: { target?: string; runtime?: string; }; file: { path: NodePath; }; } export interface Babel { types: typeof BabelTypes; } export declare function transformOptchainCall(t: Babel["types"], path: NodePath): void; export default function tsOptChainPlugin(babel: Babel): { visitor: Visitor; };