import type { IdeLink } from './ide.js'; /** * Open `file` for the user: inside the IDE project root via the IDE's * command-line launcher (` [--line N] [--column C] `), anywhere * else via the OS default application, so temp files and generated artifacts * don't hijack the IDE. Shared by the web dashboard's `/api/open` and the * sandbox's Mac-side open relay. Resolves with what opened it. */ export declare function openFile(ide: IdeLink, file: string, line: string | null, column: string | null): Promise; /** * The OS default-open command + args for a file. Exposed for unit testing. * - macOS: `open ` * - Windows: `cmd /c start "" ` (empty title arg avoids quoting issues) * - other: `xdg-open ` */ export declare function defaultOpenCommand(platform: NodeJS.Platform, file: string): [string, string[]]; /** * True when `file` is the project `root` or sits inside it. Pure path math. * Exposed for unit testing. */ export declare function isUnderRoot(file: string, root: string): boolean; //# sourceMappingURL=open.d.ts.map