/**
 * Migration 097: Backfill cascading scope columns on supervisor_policies.
 *
 * Migration 089 originally created `supervisor_policies` with a single
 * `app_id` column. The cascading-scope model (spec 093) replaced that with
 * `(scope_type, scope_id, feature_id)`. The 089 migration was rewritten in
 * place to emit the new schema for fresh installs, but DBs that already
 * applied the original 089 are silently skipped by its
 * `if (tables.length === 0)` guard, leaving them with the legacy `app_id`
 * column.
 *
 * This migration brings those legacy DBs forward without losing data:
 *   - adds `scope_type` (NOT NULL, default 'app') and `scope_id` columns
 *   - copies any existing `app_id` values into `scope_id`
 *   - drops the legacy `app_id` index and unique scope index
 *   - recreates the unique scope index over the new tuple
 *
 * Idempotent: if `scope_type` already exists, the migration is a no-op.
 */
import type { MigrationParams } from 'umzug';
import type Database from 'better-sqlite3';
export declare function up({ context: db }: MigrationParams<Database.Database>): Promise<void>;
export declare function down({ context: _db }: MigrationParams<Database.Database>): Promise<void>;
//# sourceMappingURL=097-supervisor-policies-cascading-scope.d.ts.map