import { PyodideInterface } from 'pyodide'; export interface FrameDocument extends Document { __initTestFrame: (e: InitTestFrameArg) => Promise; __runTest: ( testString: string ) => Promise< { pass: boolean } | { err: { message: string; stack?: string } } >; } export interface PythonDocument extends FrameDocument { __initPythonFrame: () => Promise; __runPython: (code: string) => Promise; } export interface InitTestFrameArg { code: { contents?: string; editableContents?: string; original?: { [id: string]: string }; }; getUserInput?: (fileName: string) => string; loadEnzyme?: () => void; transformedPython?: string; } export type FrameWindow = Window & typeof globalThis & { $: typeof $; };