import { Service } from '../../../providers/service/service'; import { Repository, RepositoryList, RepositorySizeInfo } from '../../../models/repositories'; /** * Service responsible for handling operations related to repositories domain. */ export declare class RepositoryService implements Service { private readonly repositoryRestService; private readonly repositoryContextService; private readonly authorizationService; constructor(); /** * Retrieves the list of repositories. * * @returns A promise that resolves to the list of repositories. */ getRepositories(): Promise; /** * Retrieves triple information for the specified repository. * * @param repository The repository for which to retrieve size information. * @returns A promise that resolves to a {@link RepositorySizeInfo} object containing the repository's triple details. */ getRepositorySizeInfo(repository: Repository): Promise; /** * Retrieves a list of repositories that the user has write access to. * * @returns {RepositoryList} A list of repositories that the user can write to. */ getWritableRepositories(): RepositoryList; /** * Retrieves a list of repositories that the user has read access to, including those that are readable through * GraphQL permissions. * * @returns {RepositoryList} A list of repositories that the user can read. */ getReadableRepositories(): RepositoryList; /** * Retrieves a list of repositories that the user has access to, based on the specified parameters. * @param includeRemote - If true, includes remote repositories in the list; otherwise, only local repositories are included. * @param requireWriteAccess - If true, returns repositories that the user has write access to; if false, returns repositories that the user has read access to. * @returns A list of repositories that the user has access to, filtered based on the provided parameters. */ getAccessibleRepositories(includeRemote?: boolean, requireWriteAccess?: boolean): RepositoryList; }