import type { BffCatalogRelatedEntity } from '@redocly/theme/core/types';
import type { DatabaseClient } from '../../../../../providers/database/client';
import type { PaginationParams } from '../../../../../providers/database/pagination/schemas.js';
import type { ListResult } from '../types.js';
import type { EntityRelationReadModelSchema } from '../../../schemas/read-model-schemas.js';
export declare class RelationsReadRepository {
    #private;
    constructor(db: DatabaseClient);
    getRelationsForEntity(key: string, version?: string | null, revision?: string | null): Promise<{
        targetKey: string;
        targetRevision: string;
        sourceToTargetRelation: string;
        direction: 'outgoing' | 'incoming';
        priority: number;
    }[]>;
    getRelatedEntities({ key, paginationParams, rbacTeams, excludedTypes, excludedEntities }: {
        key: string;
        paginationParams: PaginationParams;
        rbacTeams?: string[];
        excludedTypes?: string[];
        excludedEntities?: string[];
    }): Promise<ListResult<BffCatalogRelatedEntity>>;
    getEntitiesRelations(paginationParams?: PaginationParams): Promise<ListResult<EntityRelationReadModelSchema>>;
    getEntityRelationById(id: string): Promise<EntityRelationReadModelSchema | null>;
}
//# sourceMappingURL=relations-read-repository.d.ts.map