/**
 * `neotoma preflight` — standalone permission-file writer.
 *
 * Without --apply: prints a single copy-paste block that the user can apply
 * manually, ending the multi-prompt back-and-forth that plagued the old setup
 * flow.
 *
 * With --apply: calls writePermissionsForTool() directly and writes the
 * allowlist file(s) on the user's behalf.
 */
import type { ToolId } from "./doctor.js";
import type { PermissionPatch } from "./permissions.js";
export interface PreflightReport {
    tool: ToolId | null;
    apply: boolean;
    dry_run: boolean;
    patches: PermissionPatch[];
    /** True when there was nothing to do (already configured). */
    already_ok: boolean;
    /** Copy-paste block for manual application; null when --apply was used. */
    copy_paste_block: string | null;
    overall_ok: boolean;
}
export interface RunPreflightOptions {
    tool?: string | ToolId | null;
    apply?: boolean;
    dryRun?: boolean;
    cwd?: string;
    scope?: "project" | "user" | "both";
}
export declare function runPreflight(options?: RunPreflightOptions): Promise<PreflightReport>;
//# sourceMappingURL=preflight.d.ts.map