/** * Shared command-execution conformance tests for widget runtimes. * * Each adapter supplies its test harness (`test` + `assert`), its * `executeCommands` function, and a `tick` helper that resolves after the * adapter has flushed focus/scroll side effects. The factory registers the * same assertions for every runtime, ensuring the framework-free command * contract behaves identically everywhere without coupling to a specific * test runner or Node types. */ import type { MdyUiCommand } from "../commands.js"; import type { MdyElementLookup, MdyWidgetCommandHandlers } from "../command-runtime.js"; interface AssertLike { equal(actual: unknown, expected: unknown, message?: string): void; ok(value: unknown, message?: string): void; deepEqual(actual: unknown, expected: unknown, message?: string): void; } type TestFn = (name: string, fn: () => void | Promise) => void; /** * Runs a conformance suite against a runtime-specific command executor. */ export declare function runCommandExecutionTests(test: TestFn, assert: AssertLike, executeCommands: (commands: readonly MdyUiCommand[], lookup: MdyElementLookup, handlers: MdyWidgetCommandHandlers) => void, tick: () => Promise): void; export {};