/// <reference types="node" />
import { ActiveDefinitions } from "@activeledger/activedefinitions";
import { EventEmitter } from "events";
export declare class ActiveDSConnect implements ActiveDefinitions.IActiveDSConnect {
    private location;
    constructor(location: string);
    info(): Promise<any>;
    createIndex(options?: any): Promise<any>;
    allDocs(options?: any): Promise<any>;
    get(id: string, options?: any): Promise<any>;
    find(options?: any): Promise<any>;
    bulkDocs(docs: any[], options?: any): Promise<any>;
    post(doc: {}): Promise<any>;
    put(doc: {
        _id: string;
        _rev?: string;
    }): Promise<any>;
    purge(doc: {
        _id: string;
        _rev?: string;
    }): Promise<any>;
    static smash(source: string, target: string): Promise<any>;
    changes(opts: {
        live?: boolean;
        [opt: string]: any;
    }): Promise<any> | 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;
}
//# sourceMappingURL=dsconnect.d.ts.map