import { BaseService } from '../infrastructure'; import { RequestOptions } from '../infrastructure/RequestHelper'; /** TODO annotate options */ declare type ProjectOptions = temporaryAny; declare class Projects extends BaseService { all(options?: RequestOptions): Promise; archive(projectId: ProjectId): Promise; /** * @see https://docs.gitlab.com/ee/api/projects.html#create-project-for-user */ create(options: temporaryAny): Promise; edit(projectId: ProjectId, options: temporaryAny): Promise; events(projectId: ProjectId, options: ProjectOptions): Promise; fork(projectId: ProjectId, options: ProjectOptions): Promise; forks(projectId: ProjectId, options: ProjectOptions): Promise; languages(projectId: ProjectId): Promise; mirrorPull(projectId: ProjectId): Promise; remove(projectId: ProjectId): Promise; search(projectName: string): Promise; share(projectId: ProjectId, groupId: GroupId, groupAccess: GroupAccess, options: ProjectOptions): Promise; show(projectId: ProjectId, options: ProjectOptions): Promise; star(projectId: ProjectId): Promise; statuses(projectId: ProjectId, sha: string, state: string, options: ProjectOptions): Promise; transfer(projectId: ProjectId, namespace: string): Promise; unarchive(projectId: ProjectId): Promise; unshare(projectId: ProjectId, groupId: GroupId): Promise; unstar(projectId: ProjectId): Promise; updatePushRule(projectId: ProjectId, options: ProjectOptions): Promise; upload(projectId: ProjectId, filePath: string, { fileName }?: { fileName?: string; }): Promise; } export default Projects;