import { type LegacyCommandContext, type SmartCommand, type SmartEditorState, type LegacySmartTransaction } from "smartrte-core/legacy";
export interface ShadowComparison {
commandId: string;
matches: boolean;
legacyHtml: string;
coreHtml: string;
}
export declare const isShadowModeEnabled: () => boolean;
/** Compares canonicalized HTML only; it never changes editor state or output. */
export declare const compareShadowHtml: (commandId: string, legacyHtml: string, coreHtml: string) => ShadowComparison;
export declare const reportShadowDifference: (comparison: ShadowComparison) => void;
/**
* Executes a core command in memory for diagnostics. The caller owns the
* legacy output; this helper never persists or applies the core result.
*/
export declare const runShadowCommand: (args: {
command: SmartCommand;
context: LegacyCommandContext;
input?: Input;
state: SmartEditorState;
legacyHtml: string;
serialize: (state: SmartEditorState) => string;
}) => LegacySmartTransaction | null;