import type { TrackerBackend, TrackerCommandResult } from '../types.js'; import { type CanonicalIssue } from './markdown.js'; import { type ResolvedSource } from '../sources.js'; export declare function viewJson(c: CanonicalIssue, path: string, span?: { lineStart?: number; lineEnd?: number; }): Record; export declare class MarkdownBackend implements TrackerBackend { readonly name: "markdown"; private readonly sources; /** Old id -> native id, recorded when a dialect lens was materialized (docs/DIALECTS.md WP6; * see `sourceAliasMap`). Consulted only when a lookup by the typed id finds nothing. */ private readonly aliases; private readonly teamKey; private readonly projectRoot; constructor(projectRoot: string, teamKey: string, sources?: ResolvedSource[]); private defaultAssignee; private invalidStateError; private sourceOf; private requireSourceWritable; private reparentChildren; private loadOne; private loadAllRaw; private selectSources; private loadAll; /** Read-only id projection for infrastructure that needs the exact backend/source union without * executing a validation preset or duplicating source/index/document resolution. */ issueIds(): string[]; private originOf; private originPath; private writeIssue; private deleteIssue; private mintTargetSource; command(args: string[]): Promise; } export declare function createMarkdownBackend(projectRoot: string, teamKey: string, sources?: ResolvedSource[]): TrackerBackend;