/**
 * Native OS folder picker dialog for project path selection.
 *
 * The "New Project" form in the browser has a "Browse..." button next to
 * the typed-path autocomplete. When clicked, it sends
 * `POST /api/paths/pick-directory` to this handler, which launches a
 * native OS folder picker dialog on the user's machine and returns the
 * absolute path of the selected directory (or `null` when cancelled).
 *
 * Platform strategy (tried in order):
 *   1. macOS  — osascript (built-in, zero deps, native look)
 *   2. Linux  — zenity (GTK), kdialog (KDE), then Python tkinter
 *   3. Windows — PowerShell (COM object)
 *   4. Fallback — Python tkinter (bundled with most Python installs)
 *
 * The first available tool wins; if none work, we return an error.
 * All child processes are synchronous — the browser is waiting anyway.
 */
/** Result shape returned to the frontend. */
export interface PickDirectoryResult {
    /** Absolute path of the selected directory, or null if cancelled. */
    path: string | null;
    /** Human-readable error when the picker couldn't be launched. */
    error?: string;
}
/**
 * Attempt to open a native folder picker dialog and return the selected path.
 *
 * Synchronous and blocking by design — the browser form is waiting for a
 * response and the user is interacting with the dialog.
 */
export declare function handlePickDirectory(): PickDirectoryResult;
//# sourceMappingURL=paths-pick-directory.d.ts.map