/**
 * Backfill Mission Priority
 *
 * Scans `<cwd>/.crewly/missions/*.json` and writes `priority: 'medium'`
 * onto any mission file that is missing the field. Idempotent:
 * files that already have a priority are untouched.
 *
 * Usage (manual):
 * ```sh
 * npx tsx backend/src/scripts/backfill-mission-priority.ts
 * ```
 *
 * The default priority (`medium`) is a deliberate neutral fallback — callers
 * that care can update individual missions afterwards through the API.
 *
 * @module scripts/backfill-mission-priority
 */
import type { MissionPriority } from '../types/v2/mission.types.js';
/** Default priority assigned when a mission is missing the field. */
export declare const BACKFILL_DEFAULT_PRIORITY: MissionPriority;
/** Result returned by {@link backfillMissionPriority} for observability. */
export interface BackfillResult {
    /** Total mission files inspected (includes files that failed to parse). */
    scanned: number;
    /** Mission files that were rewritten with a priority. */
    updated: string[];
    /** Mission files that already had a priority and were left alone. */
    skipped: string[];
    /** File paths that failed to parse or were missing a valid `id`. */
    failed: string[];
}
/**
 * Runs the backfill against the given missions directory.
 *
 * @param missionsDir - Absolute path to `.crewly/missions`
 * @returns Counts and the list of touched mission IDs
 *
 * @example
 * ```ts
 * const result = await backfillMissionPriority('/project/.crewly/missions');
 * console.log(`Updated ${result.updated.length} missions`);
 * ```
 */
export declare function backfillMissionPriority(missionsDir: string): Promise<BackfillResult>;
//# sourceMappingURL=backfill-mission-priority.d.ts.map