/// import http from 'http'; import { GetWorkspaces200Response } from '../model/getWorkspaces200Response'; import { Workspace } from '../model/workspace'; import { Authentication, Interceptor } from '../model/models'; import { HttpBasicAuth, ApiKeyAuth } from '../model/models'; export declare enum WorkspacesApiApiKeys { ApiKeyAuth = 0 } export declare class WorkspacesApi { protected _basePath: string; protected _defaultHeaders: any; protected _useQuerystring: boolean; protected authentications: { default: Authentication; ApiKeyAuth: ApiKeyAuth; BasicAuth: HttpBasicAuth; }; protected interceptors: Interceptor[]; constructor(basePath?: string); constructor(username: string, password: string, basePath?: string); set useQuerystring(value: boolean); set basePath(basePath: string); set defaultHeaders(defaultHeaders: any); get defaultHeaders(): any; get basePath(): string; setDefaultAuthentication(auth: Authentication): void; setApiKey(key: WorkspacesApiApiKeys, value: string): void; set username(username: string); set password(password: string); addInterceptor(interceptor: Interceptor): void; getWorkspaces(xApiKey: string, accept: 'application/vnd.whispir.workspace-v1+json' | 'application/vnd.whispir.workspace-v1+xml', limit?: number, offset?: number, sortOrder?: 'asc' | 'desc', sortFields?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: GetWorkspaces200Response; }>; getWorkspacesById(workspaceId: string, xApiKey: string, accept: 'application/vnd.whispir.workspace-v1+json' | 'application/vnd.whispir.workspace-v1+xml', options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Workspace; }>; postWorkspaces(xApiKey: string, contentType: 'application/vnd.whispir.workspace-v1+json' | 'application/vnd.whispir.workspace-v1+xml', accept: 'application/vnd.whispir.workspace-v1+json' | 'application/vnd.whispir.workspace-v1+xml', workspace: Workspace, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Workspace; }>; putWorkspaceById(workspaceId: string, xApiKey: string, contentType: 'application/vnd.whispir.workspace-v1+json' | 'application/vnd.whispir.workspace-v1+xml', accept: 'application/vnd.whispir.workspace-v1+json' | 'application/vnd.whispir.workspace-v1+xml', workspace?: Workspace, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Workspace; }>; }