import { StateHandler } from '../handler/state-handler';
import { HandlerResponse, StreamStore } from '../handler/handler';
import { Subscription } from 'rxjs';
export interface IntentClass {
}
export interface IntentConstructor {
    new (dispatch: (type: string, payload: any) => void, handlers: {
        [key: string]: HandlerResponse;
    }): IntentClass;
}
export declare function intent<T extends IntentConstructor>(Base: T): any;
export declare class Intent extends StateHandler {
    private history;
    private children;
    private parent;
    private subscribers;
    subscribeEvent(subscriber: (type: string, payload?: any) => void): void;
    unsubscribeEvent(subscriber: (type: string, payload?: any) => void): void;
    unsubscribeAll(): void;
    subscribe(props: {
        [key: string]: any;
    }): Subscription;
    clone(...args: any[]): this;
    push(key: string, args?: any): Promise<any>;
    getStreamStore(): StreamStore;
    callback<Args = any, ReturnType = any>(key: string, v?: any): (args?: Args) => Promise<ReturnType>;
    private findSubjects;
    private findHistory;
}
