import { PluginMethodParameters, PluginMethods, PluginOptionsType } from '.'; import { ClientInstance } from '../client'; export declare class Plugin { config: PluginOptionsType; name: string; data: PluginData; client: Client | undefined; private pluginMethods; constructor(config: PluginOptionsType); initialize: (client: Client) => this; trigger: >(method: Key, data: PluginMethodParameters) => void; /** * Callback that will be executed when plugin is mounted */ onMount: (callback: PluginMethods["onMount"]) => this; /** * Callback that will be executed when plugin is unmounted */ onUnmount: (callback: PluginMethods["onUnmount"]) => this; /** * Callback that will be executed when request is created */ onRequestCreate: (callback: PluginMethods["onRequestCreate"]) => this; /** * Callback that will be executed when request gets triggered */ onRequestTrigger: (callback: PluginMethods["onRequestTrigger"]) => this; /** * Callback that will be executed when request starts */ onRequestStart: (callback: PluginMethods["onRequestStart"]) => this; /** * Callback that will be executed when response is successful */ onRequestSuccess: (callback: PluginMethods["onRequestSuccess"]) => this; /** * Callback that will be executed when response is failed */ onRequestError: (callback: PluginMethods["onRequestError"]) => this; /** * Callback that will be executed when response is finished */ onRequestFinished: (callback: PluginMethods["onRequestFinished"]) => this; onDispatcherCleared: (callback: PluginMethods["onDispatcherCleared"]) => this; onDispatcherQueueDrained: (callback: PluginMethods["onDispatcherQueueDrained"]) => this; onDispatcherQueueRunning: (callback: PluginMethods["onDispatcherQueueRunning"]) => this; onDispatcherItemAdded: (callback: PluginMethods["onDispatcherItemAdded"]) => this; onDispatcherItemDeleted: (callback: PluginMethods["onDispatcherItemDeleted"]) => this; onDispatcherQueueCreated: (callback: PluginMethods["onDispatcherQueueCreated"]) => this; onDispatcherQueueCleared: (callback: PluginMethods["onDispatcherQueueCleared"]) => this; onCacheItemChange: (callback: PluginMethods["onCacheItemChange"]) => this; onCacheItemDelete: (callback: PluginMethods["onCacheItemDelete"]) => this; onAdapterFetch: (callback: PluginMethods["onAdapterFetch"]) => this; } //# sourceMappingURL=plugin.d.ts.map