export interface GraphNode {
    documentId: string;
    collection: string;
    title?: string;
}
export interface GraphEdge {
    from: string;
    to: string;
    fieldName: string;
    type: 'relationship' | 'media' | 'embed';
}
export interface ContentGraph {
    nodes: GraphNode[];
    edges: GraphEdge[];
}
/** Build a content relationship graph from a document's data and field definitions. */
export declare function buildContentGraph(documentId: string, collection: string, data: Record<string, unknown>, fieldTypes: Record<string, {
    type: string;
    relationTo?: string;
}>): ContentGraph;
/** Serialize a content graph to the JSON format stored in the document. */
export declare function serializeGraph(graph: ContentGraph): Record<string, unknown>;
/** Find all documents that reference a given document. */
export declare function findIncomingReferences(targetId: string, graphs: ContentGraph[]): GraphEdge[];
//# sourceMappingURL=content-graph.d.ts.map