/// import http from 'http'; import { Event } from '../model/event'; import { GetEvents200Response } from '../model/getEvents200Response'; import { Authentication, Interceptor } from '../model/models'; import { HttpBasicAuth, ApiKeyAuth } from '../model/models'; export declare enum EventsApiApiKeys { ApiKeyAuth = 0 } export declare class EventsApi { 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: EventsApiApiKeys, value: string): void; set username(username: string); set password(password: string); addInterceptor(interceptor: Interceptor): void; createEvent(workspaceId: string, xApiKey: string, contentType: 'application/vnd.whispir.event-v1+json' | 'application/vnd.whispir.event-v1+xml', accept: 'application/vnd.whispir.event-v1+json' | 'application/vnd.whispir.event-v1+xml', event?: Event, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Event; }>; getEventById(workspaceId: string, eventId: string, xApiKey: string, accept: 'application/vnd.whispir.event-v1+json' | 'application/vnd.whispir.event-v1+xml', limit?: number, offset?: number, sortOrder?: 'asc' | 'desc', sortFields?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Event; }>; getEvents(workspaceId: string, xApiKey: string, accept: 'application/vnd.whispir.event-v1+json' | 'application/vnd.whispir.event-v1+xml', eventType: string, limit?: number, offset?: number, sortOrder?: 'asc' | 'desc', sortFields?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: GetEvents200Response; }>; putEventById(workspaceId: string, eventId: string, xApiKey: string, contentType: 'application/vnd.whispir.event-v1+json' | 'application/vnd.whispir.event-v1+xml', accept: 'application/vnd.whispir.event-v1+json' | 'application/vnd.whispir.event-v1+xml', event?: Event, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body?: any; }>; }