import { ComponentType } from 'react'; import { BaseActionSpec } from '@mtyk/dev-core/src/actions/BaseAction'; import ActionBrowser from './ActionBrowser/ActionBrowser'; export { LocalActionSpec } from './LocalActionSpec'; export { MTYKDev } from './MTYKDev'; export { useDevActions } from './useDevActions'; export { ActionBrowser }; export interface ReactActionSpec extends BaseActionSpec { reactid: string; } export declare type ReactLocalActionFn = (() => void) | (() => Promise); export declare const store: { actionsById: import("mobx").ObservableMap; wrapAction: (info: { label?: string; id: string; action: ReactLocalActionFn; }) => () => Promise; addAction: (id: string, action: ReactLocalActionFn) => void; removeAction: (id: string) => void; nextId: number; mutedEvents: Partial<{ "action-triggered": boolean; "action-completed": boolean; "action-added": boolean; "action-removed": boolean; "action-failed": boolean; }>; muteEvent: (eventName: "action-triggered" | "action-completed" | "action-added" | "action-removed" | "action-failed") => void; unmuteEvent: (eventName: "action-triggered" | "action-completed" | "action-added" | "action-removed" | "action-failed") => void; listenersByEvent: Partial<{ "action-triggered": { [id: number]: Function; }; "action-completed": { [id: number]: Function; }; "action-added": { [id: number]: Function; }; "action-removed": { [id: number]: Function; }; "action-failed": { [id: number]: Function; }; }>; on: (eventName: Key, cb: (data: { 'action-triggered': { id: string; }; 'action-completed': { id: string; }; 'action-added': { id: string; }; 'action-removed': { id: string; }; 'action-failed': { id: string; error: any; }; }[Key]) => void) => number; off: (eventName: "action-triggered" | "action-completed" | "action-added" | "action-removed" | "action-failed", id: number) => void; emit: (eventName: "action-triggered" | "action-completed" | "action-added" | "action-removed" | "action-failed", value: { id: string; } | { id: string; } | { id: string; } | { id: string; } | { id: string; error: any; }) => void; }; declare type ExtraProps = { id: string; label?: string; action: ReactLocalActionFn; }; export declare function makeActionComponent

(Component: ComponentType

, options: { actionProps?: string[]; }): ComponentType

; export declare function useComponentId(componentName: string): (strings: TemplateStringsArray, ...rest: any) => string; //# sourceMappingURL=index.d.ts.map