export interface ReverseRelationship {
    sourceDocumentId: string;
    sourceCollection: string;
    fieldName: string;
}
/** Find all documents that reference a target document via relationship fields. */
export declare function getReverseRelationships(targetDocumentId: string, _db: unknown): Promise<ReverseRelationship[]>;
/** Check if deleting a document would orphan any references. */
export declare function checkOrphanedReferences(documentId: string, _db: unknown): Promise<{
    hasReferences: boolean;
    references: ReverseRelationship[];
}>;
//# sourceMappingURL=index.d.ts.map