/** * MongoDB collection names and index definitions. * * Call `createIndexes(db)` once during application startup to ensure all * required indexes exist. The function is idempotent — MongoDB silently * skips indexes that already exist. */ import type { Db } from "mongodb"; export declare const COLLECTIONS: { readonly META: "build_meta"; readonly DOCS: "build_docs"; readonly FLOWS: "build_flows"; readonly ATTRIBUTES: "build_attributes"; readonly VALIDATIONS: "build_validations"; readonly CHANGELOG: "build_changelog"; }; export type CollectionName = (typeof COLLECTIONS)[keyof typeof COLLECTIONS]; /** * Creates all required indexes across build collections. * * - Unique compound indexes on `domain + version` (or `domain + version + key`) * guarantee at most one document per build per entity. * - Secondary indexes support common query patterns (docs by order, flows by * usecase/tags, changelogs by date). */ export declare function createIndexes(db: Db): Promise; //# sourceMappingURL=collections.d.ts.map