import { default as babel } from '@babel/core';
import * as t from '@babel/types';
export declare function codeFrameError(code: string, loc: {
    start: {
        line: number;
        column: number;
    };
    end: {
        line: number;
        column: number;
    };
}, message: string): Error;
export declare function cleanId(id: string): string;
/**
 * Strips a method call by replacing it with its callee object.
 * E.g., `foo().bar()` -> `foo()`
 *
 * This is a common pattern used when removing method calls from chains
 * (e.g., removing .server() from middleware on client, or .inputValidator() on client).
 *
 * @param callPath - The path to the CallExpression to strip
 */
export declare function stripMethodCall(callPath: babel.NodePath<t.CallExpression>): void;
