import { AFlow } from "alak"; import Vue from "vue"; import {AotfInstance} from "./src"; type AGraphNode = { global: AGraphNode; stored: AGraphNode; observ: AGraphNode; immutable: AGraphNode; stateless: AGraphNode; emitter: AGraphNode; in(parentFlowPath: string, actionPath: string) : AGraphNode; out(parentFlowPath: string, actionPath: string) : AGraphNode; bind(actionPath: string) : AGraphNode; born(actionPath: string) : AGraphNode; warp(actionPath: string) : AGraphNode; start(value: string) : AGraphNode; value(value: string) : AGraphNode; }; export declare interface IA { v: AFlow; (v: T): AFlow; } export declare const N: AGraphNode; export declare class AVue { vuex: { store: (v) => void; schema: () => any; }; a: AVueActions; f: AVueFlow; static connect: (contextName, onConnectListener: (aof: AotfInstance) => void) => void static sync: AFlow constructor( schemaClass: T, actionModules: { (a, f: T): | { [s: string]: Function; } | any; } ); } export declare interface AVueConstructorOptions { prioritySchema: boolean; silent: boolean; } export type AVueFlow = { (flowPath: string, value: any, options: AVueConstructorOptions): void; [metaParam: string]: AFlow; } & T; export declare interface AVueActions { launch(actionPath: string, ...args): Promise | any; state: { [flowName: string]: any }; during: { [actionPath: string]: boolean }; } declare module "vue/types/vue" { interface Vue { $a: AVueActions; } interface VueConstructor { $a: AVueActions; } } declare module "vue/types/options" { interface ComponentOptions { mapFlow?: { [propNameOrModuleName: string]: string[] | string }; onFlow?: { [flowPath: string]: (...dataValues) => void }; } }