export interface JLinkCommandResult { success: boolean; /** Raw full output from JLinkExe */ rawOutput: string; /** Cleaned output with connection boilerplate stripped */ output: string; error?: string; } /** Strip JLink connection boilerplate from output, returning only meaningful data */ export declare function stripBoilerplate(raw: string): string; /** * Executes J-Link Commander commands by spawning JLinkExe with a script. * Each call opens a new connection, runs the commands, and exits. * * `-ExitOnError 1` is deliberately omitted. J-Link's autoconnect flow * prints an "Error: Failed to initialize DAP" line before a successful * connect-under-reset fallback, and `-ExitOnError` treats that transient * message as fatal, causing the script to be dropped before the user's * commands run. Genuine failures are still surfaced via the stdout * classification below and via the non-zero exit code when JLinkExe * itself refuses to run. */ export declare function executeJLinkCommands(commands: string[], deviceOverride?: string): Promise; /** Flash a firmware file */ export declare function flashFirmware(filePath: string, baseAddress?: number): Promise; //# sourceMappingURL=commander.d.ts.map