/// import http from 'http'; import { GetTemplates200Response } from '../model/getTemplates200Response'; import { Template } from '../model/template'; import { Authentication, Interceptor } from '../model/models'; import { HttpBasicAuth, ApiKeyAuth } from '../model/models'; export declare enum TemplatesApiApiKeys { ApiKeyAuth = 0 } export declare class TemplatesApi { 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: TemplatesApiApiKeys, value: string): void; set username(username: string); set password(password: string); addInterceptor(interceptor: Interceptor): void; deleteTemplatesById(workspaceId: string, xApiKey: string, templateId: string, contentType: 'application/vnd.whispir.template-v1+json' | 'application/vnd.whispir.template-v1+xml', accept: 'application/vnd.whispir.template-v1+json' | 'application/vnd.whispir.template-v1+xml', options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body?: any; }>; getTemplates(workspaceId: string, xApiKey: string, accept: 'application/vnd.whispir.template-v1+json' | 'application/vnd.whispir.template-v1+xml', limit?: number, offset?: number, sortOrder?: 'asc' | 'desc', sortFields?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: GetTemplates200Response; }>; getTemplatesById(workspaceId: string, xApiKey: string, templateId: string, accept: 'application/vnd.whispir.template-v1+json' | 'application/vnd.whispir.template-v1+xml', options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Template; }>; postTemplates(workspaceId: string, xApiKey: string, contentType: 'application/vnd.whispir.template-v1+json' | 'application/vnd.whispir.template-v1+xml', accept: 'application/vnd.whispir.template-v1+json' | 'application/vnd.whispir.template-v1+xml', template: Template, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Template; }>; putTemplatesById(workspaceId: string, xApiKey: string, templateId: string, contentType: 'application/vnd.whispir.template-v1+json' | 'application/vnd.whispir.template-v1+xml', accept: 'application/vnd.whispir.template-v1+json' | 'application/vnd.whispir.template-v1+xml', template: Template, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body?: any; }>; }