import { GitHubBranchInfo, GitHubInstallationInfo, GitHubOrgInstallationInfo, WorkspaceData } from '../../editor/api'; import { ServiceServerApi } from '../api'; /** * Example api that returns data through a 'simulated' network. */ export declare class GitHubApi extends ServiceServerApi { /** * Verify that the authentication for services that require auth. * * @returns True if the auth is valid. */ checkAuth(): boolean; /** * Clear the authentication. Sign the user out of any accounts. */ clearAuth(): Promise; /** * Specific services may need to add additional params to all of * the api request (such as authentication params.) * * @param params Params being sent to the api. * @returns Updated params to send to the api. */ expandParams(params: Record): Record; getBranches(org: string, repo: string): Promise>; getOrganizations(): Promise>; getRepositories(installationId: number): Promise>; getWorkspaces(org?: string, repo?: string): Promise>; get serviceName(): string; /** * Start the authentication process. */ triggerAuth(): boolean; }