UNPKG

@knapsack/app

Version:

Build Design Systems on top of knapsack, by Basalt

26 lines 851 B
import { KsClientPlugin } from '../schemas/plugins'; /** * Plugins are internal alpha only for now, continued work on them with probably frequent API changes will happen until we feel confident in external use in the future. */ declare class PluginStore { plugins: Record<string, KsClientPlugin>; homePage: any; constructor(); /** * Register Knapsack plugin */ register(plugin: KsClientPlugin): void; getPlugins(): KsClientPlugin[]; /** * @param {object} options - Options to pass in * @param {Function} options.render - Render function that pass props to custom component * @return {void} - Sets the Home page * @deprecated */ setHomePage({ render }: { render: any; }): void; } export declare const plugins: PluginStore; export {}; //# sourceMappingURL=plugins.d.ts.map