import { AuthenticationService } from "../../services/authentication/authentication.service"; import { DatabaseService } from "../../services/database/database.service"; import { IConfigRecord } from "../../services/database/models/iconfig-record"; import { EnvironmentType } from "../../services/environment/enums/environment-type"; import { GraphQLService } from "../../services/graphql/graphql.service"; import { IDefaultOwner, IShowConfigResult } from "./models"; export declare class ConfigController { private _databaseService; private _graphQLService; private _authenticationService; constructor(_databaseService: DatabaseService, _graphQLService: GraphQLService, _authenticationService: AuthenticationService); /** * Returns the config from the db */ showConfig(): Promise; /** * Updates the environment config * @param environment The environment */ updateEnvironmentConfig(environment: EnvironmentType): Promise; /** * Sets the default drive config details if it needs to * @param record The record */ setDefaultDriveConfigDetails(): Promise; /** * Gets the default drive returning a config record */ defaultDrive(): Promise; /** * Get default drive id */ getDefaultDriveId(): Promise; /** * Return the drive owner */ getDefaultOwner(): Promise; /** * Return if the user has default drives * @param record The config record */ recordHasDefaultDrive(record: IConfigRecord): boolean; /** * Reset the default drive * @param record The config record */ private resetDefaultDrive; }