import type { Document } from '@contentful/rich-text-types'; import type { SpaceConfig } from '../config/types.js'; import type { SerializedEntry } from '../session/state.js'; import type { SafeEnvironment } from './client.js'; export interface BulkRtfReplaceOptions { find: string; replacePlain: string; dryRun?: boolean; } export interface BulkRtfFieldChange { fieldId: string; matchCount: number; nextValue?: Document; } export interface BulkRtfEntryChange { entryId: string; contentType: string; fields: BulkRtfFieldChange[]; } export declare function findRtfReplacementsInTree(env: SafeEnvironment, space: SpaceConfig, locale: string, entries: Record, opts: BulkRtfReplaceOptions): Promise; /** Merge duplicate entry IDs (shared components across page trees). Keeps the field change with the highest match count. */ export declare function dedupeBulkRtfChanges(changes: BulkRtfEntryChange[]): BulkRtfEntryChange[]; export declare function applyBulkRtfEntryChanges(env: SafeEnvironment, locale: string, changes: BulkRtfEntryChange[]): Promise; export declare function fetchRootEntryIds(env: SafeEnvironment, contentTypes: string[], prefix: string | undefined, locale: string, limit: number): Promise>; //# sourceMappingURL=bulk-rtf-replace.d.ts.map