import type { WorkspaceProject } from '../workspace/workspace-project.js'; /** * Ensure the workspace bootstrap loads generated post-meta PHP modules. * * Inserts the generated loader function, appends its `init` hook, and rejects * incompatible existing loader functions that omit the generated post-meta glob. * * @param workspace Resolved official workspace metadata and paths. * @returns A promise that resolves after the bootstrap has been patched. * @throws {Error} When the bootstrap cannot be read, written, or safely patched. */ export declare function ensurePostMetaBootstrapAnchors(workspace: WorkspaceProject): Promise; /** * Ensure `scripts/sync-rest-contracts.ts` handles post-meta schema contracts. * * Patches inventory imports, type guards, no-resource checks, sync loops, and * success copy so generated post-meta schemas participate in REST contract sync. * * @param workspace Resolved official workspace metadata and paths. * @returns A promise that resolves after the sync script has been patched. * @throws {Error} When expected anchors are missing or file IO fails. */ export declare function ensurePostMetaSyncScriptAnchors(workspace: WorkspaceProject): Promise;