import { Node, NodePath, Debugger } from '../types'; import { Backend } from '../backend/Backend'; export interface ReplaceableMatch { captures?: Record; arrayCaptures?: Record; stringCaptures?: Record; } export interface CompiledReplacement { generate: (match: ReplaceableMatch) => Node | Node[]; } export declare type RootCompileReplacementOptions = { debug?: Debugger; backend: Backend; }; export declare type CompileReplacementOptions = { debug: Debugger; backend: Backend; }; export default function compileReplacement(pattern: NodePath | NodePath | NodePath[], rootCompileReplacementOptions: RootCompileReplacementOptions): CompiledReplacement;