import * as IR from "../../../../build/ir"; import * as Ast from "../../../../build/generated/crochet-grammar"; import type { SnippetClient, PlaygroundProcess } from "./client"; export declare abstract class ReplExpr { abstract evaluate(client: SnippetClient, process: PlaygroundProcess): Promise; } export declare class ReplDeclaration extends ReplExpr { readonly declarations: IR.Declaration[]; readonly source: string; readonly meta: Map; constructor(declarations: IR.Declaration[], source: string, meta: Map); evaluate(client: SnippetClient, process: PlaygroundProcess): Promise; } export declare class ReplStatements extends ReplExpr { readonly block: IR.BasicBlock; readonly source: string; readonly meta: Map; constructor(block: IR.BasicBlock, source: string, meta: Map); evaluate(client: SnippetClient, process: PlaygroundProcess): Promise; } export declare function lower(x: Ast.REPL, source: string): ReplExpr; export declare function compile(source: string): ReplExpr;