/** * @angular-modernizer/plugin-angular - Static Extract Transform Rule * * Extracts public static methods from stateful classes to module-level * exported functions placed immediately above the class declaration. * * @example * // Before * export class OrderService { * private orders: Order[] = []; * static validate(id: string): boolean { return id.length > 0; } * addOrder(order: Order): void { this.orders.push(order); } * } * * // After * export function validate(id: string): boolean { return id.length > 0; } * * export class OrderService { * private orders: Order[] = []; * addOrder(order: Order): void { this.orders.push(order); } * } */ import type { TransformRule, TransformContext, TransformResult } from '@angular-modernizer/plugin-system'; import type { PublicApi } from '@angular-modernizer/api'; export declare class StaticExtractTransformRule implements TransformRule { readonly id = "angular:extract-static-from-stateful"; readonly name = "Extract Static Methods from Stateful Class"; readonly description = "Extracts public static methods from classes with instance state to module-level functions"; readonly category = "refactoring"; readonly tags: string[]; private readonly orchestrator; transform(context: TransformContext): Promise; } //# sourceMappingURL=static-extract-transform.rule.d.ts.map