UNPKG

@jargon/platform-jovo

Version:

A Jovo Framework plugin for the Jargon Platform SDK

26 lines (25 loc) 1.08 kB
import { ResourceManagerFactory, ResourceManagerOptions } from '@jargon/platform-sdk-core'; import { BaseApp, Extensible, Plugin } from 'jovo-core'; import { JovoJargon } from '../jovojargon'; /** Options for the Jargon plugin */ export interface JargonPluginOptions extends ResourceManagerOptions { /** The ResourceManagerFactory to use. If not provided DefaultResourceManagerFactory will be used */ resourceManagerFactory?: ResourceManagerFactory; } declare module 'jovo-core/dist/src/core/Jovo' { interface Jovo { jargon: JovoJargon; } } /** The Jargon plugin for the Jovo framework */ export declare class JargonPlugin extends Extensible implements Plugin { private _options; private _rmf; /** Constructor for the plugin * @param {any} options Optional options for the plugin. The values in DefaultResourceManagerOptions will be used for anything not provided */ constructor(options?: any); /** Called by the Jovo framework after the plugin is installed */ install(app: BaseApp): void; uninstall(parent?: any): void; }