/**
 * Transform: app.ts
 *
 * Handles the following mechanical changes:
 *   1. Remove bootstrapRuntimeEnv() import + call
 *   2. Add migration comment for setup/shutdown (removed in v2)
 *
 * Note: analytics/workbench STAY in createApp() — they are not moved anywhere.
 * In v2, createApp() is the single source of truth for all runtime config.
 *
 * We use simple string-level surgery rather than a full AST round-trip so that
 * formatting and comments are preserved.  The TypeScript API is used only for
 * detection (already done in detect.ts); we apply regex-based patches here.
 *
 * COMPLEXITY GUARD: if the file contains anything we don't recognise (e.g. the
 * giant generated/app.ts blob that v1 CLI wrote), we refuse to touch it and
 * return a `complexityError`.
 */
import type { DetectionResult } from '../detect';
export interface AppTsTransformResult {
    /** The transformed source, or null if transformation was skipped */
    source: string | null;
    /** Set when the file is too complex for automated transformation */
    complexityError?: string;
    /** Informational messages about what was changed */
    changes: string[];
}
export declare function transformAppTs(source: string, detection: DetectionResult): AppTsTransformResult;
//# sourceMappingURL=app-ts.d.ts.map