import { EntryDataValidator, type SchemaManifest } from "@aotter/mantle-spec"; import type { EntryRepository } from "../../port/EntryRepository.js"; import type { LocalePolicyReader } from "../../port/SiteConfigRepository.js"; export interface AssertEntryWritableArgs { readonly opPath: string; readonly entries: EntryRepository; readonly schema: SchemaManifest; readonly data: Record; readonly validator: EntryDataValidator; readonly excludeId?: string; readonly siteConfig?: LocalePolicyReader; /** Draft mode: skip required-field + locale-presence checks so a * work-in-progress entry can be saved incomplete. Publish paths * omit this, so completeness is enforced before an entry goes live. */ readonly partial?: boolean; } /** Shared post-projection guard for every authoring path. * * MCP, admin/API, and builtin Procedure writes all land here after * `x-mantle-bind` stamping, so schema validation and unique-index * semantics cannot drift by transport. */ export declare function assertEntryWritable(args: AssertEntryWritableArgs): Promise; //# sourceMappingURL=EntryWriteGuard.d.ts.map