export { GroongaError } from './client_utils'; export declare type CommandCallback = (err: Error | undefined, data: any) => void; export declare type ResponseType = 'arraybuffer' | 'json'; export interface AxiosRequestConfigLike { headers?: Record; responseType?: ResponseType; } interface AxiosResponseLike { data: T; } export interface AxiosLike { get>(url: string, config?: AxiosRequestConfigLike): Promise; post>(url: string, data?: any, config?: AxiosRequestConfigLike): Promise; } export declare class GroongaHttpClient { readonly axios: AxiosLike; readonly host: string; constructor(axios: AxiosLike, host: string); command(command: string, options: Record, callback: CommandCallback): void; command(command: string, callback: CommandCallback): void; commandAsync(command: string, options: Record): Promise; commandAsync(command: string): Promise; } export declare function createGroongaClient(axios: AxiosLike, host: string): GroongaHttpClient; export declare const createClient: typeof createGroongaClient; export declare type GroongaHttpClientClass = typeof GroongaHttpClient; export declare type GroongaHttpClientInstance = GroongaHttpClient;