export type ExtensionLegacyPatch = { find: string; replace: string; all?: boolean; expectedMatches?: number; required?: boolean; }; export type ExtensionContentEdit = { op?: "replace"; find: string; replace: string; all?: boolean; occurrence?: number; expectedMatches?: number; required?: boolean; } | { op: "insert-before" | "insert-after"; marker: string; content: string; occurrence?: number; expectedMatches?: number; required?: boolean; } | { op: "replace-between"; start: string; end: string; content: string; includeDelimiters?: boolean; expectedMatches?: number; required?: boolean; } | { op: "replace-section"; section: string; content: string; keepMarkers?: boolean; required?: boolean; } | { op: "wrap-section"; section: string; before: string; after: string; keepMarkers?: boolean; required?: boolean; } | { op: "remove-section"; section: string; keepMarkers?: boolean; required?: boolean; } | { op: "regex-replace"; pattern: string; replace: string; flags?: string; all?: boolean; expectedMatches?: number; required?: boolean; }; export declare class ExtensionContentEditError extends Error { readonly code = "extension_content_edit_failed"; constructor(message: string); } export interface ExtensionContentUpdateOpts { content?: string; patches?: ExtensionLegacyPatch[]; edits?: ExtensionContentEdit[]; format?: boolean; } export interface ExtensionContentUpdateResult { content: string; applied: string[]; formatted: boolean; } export declare function applyExtensionContentUpdate(currentContent: string, opts: ExtensionContentUpdateOpts): Promise; export declare function formatExtensionHtml(content: string): Promise; //# sourceMappingURL=content-patch.d.ts.map