export interface InlineResourceResult { /** The modified source code, or the original if no changes were needed. */ code: string; /** * Source extension (without the leading dot, lower-cased — e.g. `scss`) of * each inlined external style, keyed by its position in the flat per-file * style list produced by {@link extractInlineStyles}. Lets the caller run * each external `styleUrl` through the right preprocessor by its own file * extension, independent of the `inlineStylesExtension` option (which governs * truly-inline `styles: [...]` template strings). */ styleExtensions: Map; } /** * Inline external templateUrl and styleUrl/styleUrls into the source code * using OXC parser for precise AST-based rewriting. * * Replaces: * templateUrl: './file.html' → template: "...file contents..." * styleUrl: './file.scss' → styles: ["...file contents..."] * styleUrls: ['./a.scss'] → styles: ["...contents..."] * * When the decorator already has a `styles: [...]` array, inlined CSS is * merged into that existing array instead of emitting a second `styles` * property (which would be a duplicate object literal key). * * Returns the modified source code plus the per-style-index extension map * (see {@link InlineResourceResult}). */ export declare function inlineResourceUrls(code: string, fileName: string): InlineResourceResult; /** * Extract inline style strings from Angular @Component decorator using OXC parser. * Returns an array of style string values for preprocessing. */ export declare function extractInlineStyles(code: string, fileName: string): string[];