/// import http from 'http'; import { Contact } from '../model/contact'; import { GetContacts200Response } from '../model/getContacts200Response'; import { Authentication, Interceptor } from '../model/models'; import { HttpBasicAuth, ApiKeyAuth } from '../model/models'; export declare enum ContactsApiApiKeys { ApiKeyAuth = 0 } export declare class ContactsApi { 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: ContactsApiApiKeys, value: string): void; set username(username: string); set password(password: string); addInterceptor(interceptor: Interceptor): void; deleteContactsById(workspaceId: string, xApiKey: string, contactId: string, action?: 'deleteAll', options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body?: any; }>; getContacts(workspaceId: string, xApiKey: string, accept: 'application/vnd.whispir.contact-v1+json' | 'application/vnd.whispir.contact-v1+xml', limit?: number, offset?: number, sortOrder?: 'asc' | 'desc', sortFields?: string, fieldname?: string, customFields?: boolean, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: GetContacts200Response; }>; getContactsById(workspaceId: string, xApiKey: string, contactId: string, accept: 'application/vnd.whispir.contact-v1+json' | 'application/vnd.whispir.contact-v1+xml', fields?: string, sortOrder?: 'asc' | 'desc', sortFields?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body?: any; }>; postContacts(workspaceId: string, xApiKey: string, accept: 'application/vnd.whispir.contact-v1+json' | 'application/vnd.whispir.contact-v1+xml', contentType: 'application/vnd.whispir.contact-v1+json' | 'application/vnd.whispir.contact-v1+xml', contact: Contact, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Contact; }>; putContactsById(workspaceId: string, xApiKey: string, contactId: string, accept: 'application/vnd.whispir.contact-v1+json' | 'application/vnd.whispir.contact-v1+xml', contentType: 'application/vnd.whispir.contact-v1+json' | 'application/vnd.whispir.contact-v1+xml', contact: Contact, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body?: any; }>; }