import { Observable } from 'rxjs'; import * as GQL from '../backend/graphqlschema'; /** * Fetches all users. */ export declare function fetchAllUsers(args: { first?: number; query?: string; }): Observable; /** * Fetches all organizations. */ export declare function fetchAllOrganizations(args: { first?: number; query?: string; }): Observable; interface RepositoryArgs { first?: number; query?: string; enabled?: boolean; disabled?: boolean; cloned?: boolean; cloneInProgress?: boolean; notCloned?: boolean; indexed?: boolean; notIndexed?: boolean; } export declare function fetchAllRepositoriesAndPollIfAnyCloning(args: RepositoryArgs): Observable; /** * Add a repository. See the GraphQL documentation for Mutation.addRepository. */ export declare function addRepository(name: string): Observable<{ /** The ID of the newly added repository (or the existing repository, if it already existed). */ id: GQL.ID; }>; export declare function setRepositoryEnabled(repository: GQL.ID, enabled: boolean): Observable; export declare function setAllRepositoriesEnabled(enabled: boolean): Observable; export declare function updateMirrorRepository(args: { repository: GQL.ID; }): Observable; export declare function updateAllMirrorRepositories(): Observable; export declare function checkMirrorRepositoryConnection(args: { repository: GQL.ID; } | { name: string; }): Observable; export declare function deleteRepository(repository: GQL.ID): Observable; /** * Fetches usage analytics for all users. * * @return Observable that emits the list of users and their usage data */ export declare function fetchUserAnalytics(args: { activePeriod?: GQL.UserActivePeriod; query?: string; first?: number; }): Observable; /** * Fetches site-wide usage analytics. * * @return Observable that emits the list of users and their usage data */ export declare function fetchSiteAnalytics(): Observable; /** * Fetches the site and its configuration. * * @return Observable that emits the site */ export declare function fetchSite(): Observable; /** * Updates the site's configuration. * * @returns An observable indicating whether or not a service restart is * required for the update to be applied. */ export declare function updateSiteConfiguration(input: string): Observable; /** * Reloads the site. */ export declare function reloadSite(): Observable; export declare function setUserIsSiteAdmin(userID: GQL.ID, siteAdmin: boolean): Observable; export declare function randomizeUserPassword(user: GQL.ID): Observable; export declare function deleteUser(user: GQL.ID): Observable; export declare function createUser(username: string, email: string | undefined): Observable; export declare function deleteOrganization(organization: GQL.ID): Observable; export declare function fetchSiteUpdateCheck(): Observable<{ buildVersion: string; productVersion: string; updateCheck: GQL.IUpdateCheck; }>; /** * Fetches all known language server's information. * * @return Observable that emits the list of language servers. */ export declare function fetchLangServers(): Observable; /** * Enables the language server for the given language. */ export declare function enableLangServer(language: string): Observable; /** * Disables the language server for the given language. */ export declare function disableLangServer(language: string): Observable; /** * Restarts the language server for the given language. */ export declare function restartLangServer(language: string): Observable; /** * Updates the language server for the given language. */ export declare function updateLangServer(language: string): Observable; export {}; //# sourceMappingURL=backend.d.ts.map