import { FoamGraph } from '../model/graph'; import { FoamWorkspace } from '../model/workspace'; import { URI } from '../model/uri'; import { WorkspaceTextEdit } from './text-edit'; export interface HeadingEditResult { edits: WorkspaceTextEdit[]; totalOccurrences: number; } export declare abstract class HeadingEdit { /** * Generate edits to update all links referencing block `^oldId` in the * resource at `resourceUri`, renaming it to `^newId`. * * Does NOT include the edit to update the block anchor text itself — that is * handled by the caller (the VS Code provider layer). * * Handles: * - Wikilinks: `[[note#^oldId]]` → `[[note#^newId]]` * - Direct markdown links: `[text](note.md#^oldId)` → `[text](note.md#^newId)` * - Reference-style markdown links: updates the definition URL fragment */ static createRenameBlockEdits(graph: FoamGraph, workspace: FoamWorkspace, resourceUri: URI, oldId: string, newId: string): HeadingEditResult; /** * Generate edits to update all links referencing `oldLabel` section in * the resource at `resourceUri`, renaming it to `newLabel`. * * Does NOT include the edit to update the heading text itself — that is * handled by the caller (the VS Code provider layer). * * Handles three link forms: * - Wikilinks: `[[note#OldLabel]]` → `[[note#NewLabel]]` * - Self-referencing wikilinks: `[[#OldLabel]]` → `[[#NewLabel]]` * - Direct markdown links: `[text](note.md#OldLabel)` → `[text](note.md#NewLabel)` * - Reference-style markdown links: updates the definition URL line, not the inline text */ static createRenameSectionEdits(graph: FoamGraph, workspace: FoamWorkspace, resourceUri: URI, oldLabel: string, newLabel: string): HeadingEditResult; } //# sourceMappingURL=heading-edit.d.ts.map