interface PyretState { definitionsAtLastRun: string; interactionsSinceLastRun: string[]; editorContents: string; replContents: string; messageNumber?: number; } interface PyretMessage { protocol: "pyret"; data: { type: string; state?: string | PyretState; change?: { from: { line: number; ch: number; }; to: { line: number; ch: number; }; text: string; }; reportAnswer?: string; textResult?: string; }; state?: PyretState; } interface EmbedAPI { sendReset: (state?: PyretState) => void; postMessage: (message: any) => void; getFrame: () => HTMLIFrameElement; setInteractions: (text: string) => void; runDefinitions: () => void; runInteractionResult: () => Promise; onChange: (callback: (message: PyretMessage) => void) => void; clearInteractions: () => void; } declare function makeEmbed(id: string, container: HTMLElement, src?: string): Promise; export { makeEmbed, type EmbedAPI, type PyretState, type PyretMessage }; //# sourceMappingURL=api.d.ts.map