import { AuthenticateCustomerPayload, Project, SimpleProjectInfo, CloudTokenRequestPayload } from '../types/common'; import { GraphQLClient } from 'graphql-request'; import { Config } from '../Config'; import { Environment, Cluster, FunctionInput } from 'prisma-yml'; import { Output } from '../index'; import { User, Migration, DeployPayload, Workspace, Service, AuthenticationPayload } from './types'; export declare class Client { config: Config; env: Environment; out: Output; clusterClient: GraphQLClient; mock: (input: { request: any; response: any; }) => void; private mocks; private tokenCache; constructor(config: Config, environment: Environment, out: Output); initClusterClient(cluster: Cluster, serviceName: string, stageName?: string, workspaceSlug?: string | undefined | null): Promise; readonly client: GraphQLClient; readonly cloudClient: GraphQLClient; introspect(serviceName: string, stageName: string, token?: string, workspaceSlug?: string): Promise; exec(serviceName: string, stageName: string, query: string, token?: string, workspaceSlug?: string): Promise; download(serviceName: string, stage: string, exportData: any, token?: string, workspaceSlug?: string): Promise; upload(serviceName: string, stage: string, exportData: any, token?: string, workspaceSlug?: string): Promise; reset(serviceName: string, stage: string, token?: string, workspaceSlug?: string): Promise; requestCloudToken(): Promise; cloudTokenRequest(secret: string): Promise; ensureAuth(): Promise; login(key?: string): Promise; logout(): void; getAccount(): Promise; getCloudServices(): Promise; generateClusterToken(workspaceSlug: string, clusterName: string, serviceName: string, stageName: string): Promise; isAuthenticated(): Promise; getWorkspaces(): Promise; addProject(name: string, stage: string, secrets: string[] | null): Promise; deleteProject(name: string, stage: string, workspaceSlug: string | null): Promise; hasStepsApi(): Promise; deploy(name: string, stage: string, types: string, dryRun: boolean, subscriptions: FunctionInput[], secrets: string[] | null, force?: boolean, noMigration?: boolean): Promise; listProjects(): Promise; getProject(name: string, stage: string): Promise; getCluster(name: string, stage: string): Promise; getClusterSafe(name: string, stage: string): Promise; waitForLocalDocker(endpoint: string): Promise; getMigration(name: string, stage: string): Promise; authenticateCustomer(endpoint: string, token: string): Promise; }