import { SchematicContext, Tree } from '@angular-devkit/schematics'; /** * Finds `index.html` and injects the anti-flash blocking script as the very * first child of ``. This is intentional: the script must run before * any stylesheets or Angular bundles to eliminate the flash of incorrect theme. * * Skips the patch gracefully if: * - `index.html` does not exist at the expected path. * - The script tag is already present (idempotent). * * Detection strategy (in order): * 1. `${sourceRoot}/index.html` — standard project layout. * 2. `public/index.html` — project-level public folder (e.g. Vite-based). * * @param tree The virtual file tree of the Angular project. * @param context The schematic's execution context for logging. * @param sourceRoot The source root for the project. * @param options The configuration options collected from the prompt. */ export declare function patchIndexHtml(tree: Tree, context: SchematicContext, sourceRoot: string, options: { storageKey: string; defaultTheme: string; mode: string; themes: string[]; strategy: 'critters' | 'blocking'; }): void;