interface RegistryEntry { pattern: RegExp; schema: string; kind: string; } export declare const WRITE_REGISTRY: RegistryEntry[]; export declare function matchWriteRegistry(absPath: string): RegistryEntry | null; export declare function applyPiEdits(filePath: string, edits: Array<{ oldText: string; newText: string; }>): string; export interface WriteGuardResult { block: boolean; reason?: string; } /** * Check whether a Write or Edit targeting `filePath` with `contents` satisfies * the Forge schema for that path. * * @param filePath Absolute path being written (from event.input.path, resolved). * @param contents Post-write/post-edit file contents as a string. * @param forgeRoot Absolute path to the Forge plugin root. * @returns { block: false } if allowed; { block: true, reason } if blocked. * * Fail-open: returns { block: false } on any internal error. */ export declare function checkWriteGuard(filePath: string, contents: string, forgeRoot: string): WriteGuardResult; export {};