/// import http from 'http'; import { GetResources200Response } from '../model/getResources200Response'; import { Resource } from '../model/resource'; import { Authentication, Interceptor } from '../model/models'; import { HttpBasicAuth, ApiKeyAuth } from '../model/models'; export declare enum ResourcesApiApiKeys { ApiKeyAuth = 0 } export declare class ResourcesApi { 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: ResourcesApiApiKeys, value: string): void; set username(username: string); set password(password: string); addInterceptor(interceptor: Interceptor): void; deleteResourcesById(workspaceId: string, xApiKey: string, resourceId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body?: any; }>; getResources(workspaceId: string, xApiKey: string, accept: 'application/vnd.whispir.resource-v1+json' | 'application/vnd.whispir.resource-v1+xml', limit?: number, offset?: number, sortOrder?: 'asc' | 'desc', sortFields?: string, scope?: 'private' | 'public', name?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: GetResources200Response; }>; getResourcesById(workspaceId: string, xApiKey: string, accept: 'application/vnd.whispir.resource-v1+json' | 'application/vnd.whispir.resource-v1+xml', resourceId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Resource; }>; postResources(workspaceId: string, xApiKey: string, contentType: 'application/vnd.whispir.resource-v1+json' | 'application/vnd.whispir.resource-v1+xml', accept: 'application/vnd.whispir.resource-v1+json' | 'application/vnd.whispir.resource-v1+xml', resource: Resource, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Resource; }>; putResourcesById(workspaceId: string, xApiKey: string, contentType: 'application/vnd.whispir.resource-v1+json' | 'application/vnd.whispir.resource-v1+xml', accept: 'application/vnd.whispir.resource-v1+json' | 'application/vnd.whispir.resource-v1+xml', resourceId: string, resource: Resource, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Resource; }>; }