@typecad/typecad
Version:
🤖programmatically 💥create 🛰️hardware
22 lines (21 loc) • 860 B
TypeScript
export interface IKiCadWindowStatus {
found: boolean;
hasUnsavedChanges: boolean;
windowTitle?: string;
appName?: string;
}
/**
* Scans open windows to find KiCad PCB Editor with the specified board name.
* @param boardName - The name of the board to look for (without .kicad_pcb extension)
* @returns Status object indicating if the window was found and if it has unsaved changes
* @private
*/
export declare function scanForKiCadWindow(boardName: string): Promise<IKiCadWindowStatus>;
/**
* Prompts the user to save changes in KiCad and wait before continuing.
* @param boardName - The name of the board
* @param windowTitle - The title of the KiCad window
* @returns Promise that resolves when user chooses to continue
* @private
*/
export declare function promptUserToSave(boardName: string, windowTitle: string): Promise<void>;