import { whichSync } from "./which.js"; export type EditorTarget = { dir: string; file?: string; }; export type EditorLaunch = { command: string; args: string[]; }; export declare class NoEditorError extends Error { constructor(); } /** * Backwards-compatible re-export. New code should import `whichSync` from * `./which.js` directly. */ export declare const defaultWhich: typeof whichSync; export declare function resolveEditorCommand(target: EditorTarget, env?: NodeJS.ProcessEnv, platform?: NodeJS.Platform, which?: (cmd: string) => boolean): EditorLaunch;