export declare function createHttpClient(options?: {}): HttpClient; export declare class HttpClient { private headers; /** * @param args.header - headers to be passed in the request */ constructor({ headers }: { headers?: {}; }); /** * The post method is used to send data to zotero. * @param uri - the uri to send the data to * @param data - the data to be sent * @param headers - headers to be passed in the request * @param config - configuration object * @param config.user_id - the user id * @param config.group_id - the group id * @param config.verbose - verbose mode * @returns the response from the server */ post(uri: string, data: any, headers?: {}, config?: any): Promise; /** * The get method is used to get data from zotero. * @param uri - the uri to get the data from * @param options - options to be passed in the request * @param options.fulluri - whether to use the full uri * @param options.userOrGroupPrefix - whether to use the user or group prefix, if not provided it defaults to true * @param options.params - the parameters to be passed in the request * @param options.resolveWithFullResponse - resolve with full response axios param, see axios documentation * @param options.json - json axios param, see axios documentation * @param options.arraybuffer - wheter to pass responseType as arraybuffer, see axios documentation * @param config - configuration object * @param config.user_id - the zotero user id it will be used if userOrGroupPrefix is not false * @param config.group_id - the the zotero group id it will be used if user_id is not provided * @param config.verbose - verbose mode * @returns the response from zotero. */ get(uri: string, options?: { fulluri?: boolean; userOrGroupPrefix?: boolean; params?: any; resolveWithFullResponse?: boolean; json?: boolean; arraybuffer?: boolean; }, config?: any): Promise; /** * The put method is used to update data in zotero. * @param uri - the uri to update the data * @param data - the data to be updated * @param config - configuration object * @param config.user_id - the zotero user id * @param config.group_id - the zotero group id it will be used if user_id is not provided * @param config.verbose - verbose mode * @returns the response from zotero */ put(uri: string, data: any, config: any): Promise; /** * The patch method is used to update data in zotero. * @param uri - the uri to update the data * @param data - the data to be updated * @param version - the version of the data * @param config - configuration object * @param config.user_id - the zotero user id * @param config.group_id - the zotero group id it will be used if user_id is not provided * @param config.verbose - verbose mode * @returns the response from zotero */ patch(uri: string, data: any, version?: number | string, config?: any): Promise; /** * The delete method is used to delete data from zotero. * @param uri - the uri to delete the data * @param version - the version of the data * @param config - configuration object * @param config.user_id - the zotero user id * @param config.group_id - the zotero group id it will be used if user_id is not provided * @param config.verbose - verbose mode * @returns the response from zotero */ delete(uri: string, version?: number | string, config?: any): Promise; }