import { PositionBounds } from '../types'; export interface InsertDef { code: string; insertPos: number; } export interface ReplaceDef { code: string; positions: PositionBounds; } export declare const insertNewFunction: (source: string, insertDef: InsertDef) => string; export declare const insertExtractedFunction: (srcNode: any, insertDef: InsertDef) => string; export declare const replaceWithCallToExtractedFunction: (srcNode: any, replaceDef: ReplaceDef, withReturn?: boolean) => string;