import { Client } from '../client'; import type { Models } from '../models'; export declare class Vcs { client: Client; constructor(client: Client); /** * List Repositories * * * @param {string} installationId * @param {string} search * @throws {AppwriteException} * @returns {Promise} */ listRepositories(installationId: string, search?: string): Promise; /** * Create repository * * * @param {string} installationId * @param {string} name * @param {boolean} xprivate * @throws {AppwriteException} * @returns {Promise} */ createRepository(installationId: string, name: string, xprivate: boolean): Promise; /** * Get repository * * * @param {string} installationId * @param {string} providerRepositoryId * @throws {AppwriteException} * @returns {Promise} */ getRepository(installationId: string, providerRepositoryId: string): Promise; /** * List Repository Branches * * * @param {string} installationId * @param {string} providerRepositoryId * @throws {AppwriteException} * @returns {Promise} */ listRepositoryBranches(installationId: string, providerRepositoryId: string): Promise; /** * Get files and directories of a VCS repository * * * @param {string} installationId * @param {string} providerRepositoryId * @param {string} providerRootDirectory * @throws {AppwriteException} * @returns {Promise} */ getRepositoryContents(installationId: string, providerRepositoryId: string, providerRootDirectory?: string): Promise; /** * Detect runtime settings from source code * * * @param {string} installationId * @param {string} providerRepositoryId * @param {string} providerRootDirectory * @throws {AppwriteException} * @returns {Promise} */ createRepositoryDetection(installationId: string, providerRepositoryId: string, providerRootDirectory?: string): Promise; /** * Authorize external deployment * * * @param {string} installationId * @param {string} repositoryId * @param {string} providerPullRequestId * @throws {AppwriteException} * @returns {Promise<{}>} */ updateExternalDeployments(installationId: string, repositoryId: string, providerPullRequestId: string): Promise<{}>; /** * List installations * * * @param {string[]} queries * @param {string} search * @throws {AppwriteException} * @returns {Promise} */ listInstallations(queries?: string[], search?: string): Promise; /** * Get installation * * * @param {string} installationId * @throws {AppwriteException} * @returns {Promise} */ getInstallation(installationId: string): Promise; /** * Delete Installation * * * @param {string} installationId * @throws {AppwriteException} * @returns {Promise<{}>} */ deleteInstallation(installationId: string): Promise<{}>; }