import type { EponymeSchema } from '../types/eponyme.js'; export interface EponymeIndexRow { entryName: string; version: 'draft' | 'published'; key: string; value: string; } /** Reserved key holding what an entry points at, as `/`, at any depth. */ export declare const EPONYME_RELATION_INDEX_KEY = "__eponyme:relation"; /** Rejecting a query on an unknown key beats silently returning the whole collection. */ export declare function eponymeIndexKeys(schema: EponymeSchema): string[]; export declare function isEponymeIndexKey(schema: EponymeSchema, key: string): boolean; /** Deliberately not `schemaFingerprint`, which covers names and types only. */ export declare function describeEponymeIndexSchema(schema: EponymeSchema): string; /** * Only top-level fields are covered, which is the same reach as `orderBy`: a field nested in a section, a * tab or an array is not addressable by a single key, so neither sorting nor filtering can name one. */ export declare function buildEponymeIndexRows(entryName: string, schema: EponymeSchema, versions: { draft: Record; published: Record; }): EponymeIndexRow[]; /** The form both the write path and a query reduce a value to, so they always agree. */ export declare function foldEponymeIndexValue(value: string): string;