///
import { ActiveDefinitions } from "@activeledger/activedefinitions";
import { EventEmitter } from "events";
export declare class ActiveDSConnect implements ActiveDefinitions.IActiveDSConnect {
private location;
constructor(location: string);
info(): Promise;
drop(): Promise;
createIndex(options?: any): Promise;
allDocs(options?: any): Promise;
get(id: string, options?: any): Promise;
createget(id: string, options?: any): Promise;
exists(id: string): Promise<{} | Boolean>;
find(options?: any): Promise;
bulkDocs(docs: any[], options?: any): Promise;
post(doc: {}): Promise;
put(doc: {
_id: string;
_rev?: string;
}): Promise;
purge(doc: {
_id: string;
_rev?: string;
}): Promise;
seqDelete(sequence: string): Promise;
seqGet(sequence: string): Promise;
compact(): Promise;
changes(opts: {
live?: boolean;
[opt: string]: any;
}): Promise | ActiveDSChanges;
}
export declare class ActiveDSChanges extends EventEmitter implements ActiveDefinitions.IActiveDSChanges {
private opts;
private location;
private bulk;
private stop;
constructor(opts: {
live?: boolean;
[opt: string]: any;
}, location: string, bulk?: boolean);
private listen;
cancel(): void;
restart(): void;
}
//# sourceMappingURL=dsconnect.d.ts.map