/** * cfn-lint patch fetcher and applier. * * Downloads cfn-lint patches from GitHub and applies them to raw schemas * before parsing. This enriches the schemas with additional type information, * enum values, and constraint fixes. */ export interface PatchWarning { typeName: string; patchFile: string; error: Error; } export interface PatchStats { patchesApplied: number; resourcesFixed: number; warnings: PatchWarning[]; } /** * Fetch cfn-lint patches from GitHub tarball and extract to cache. * Returns the path to the extracted patches directory. */ export declare function fetchCfnLintPatches(force?: boolean): Promise; /** * Apply cfn-lint RFC 6902 patches to raw schema bytes. * For each schema, converts type name to directory name and applies * manual.json, smithy.json, format.json in order. */ export declare function applyPatches(schemas: Map, patchesDir: string): { schemas: Map; stats: PatchStats; }; /** * Convert CloudFormation type name to cfn-lint patch directory name. * AWS::S3::Bucket → aws_s3_bucket */ export declare function typeNameToPatchDir(typeName: string): string; //# sourceMappingURL=patches.d.ts.map