vuestic-ui
Version:
Vue 3 UI Framework
11 lines (10 loc) • 528 B
TypeScript
import { ComputedRef } from 'vue';
import { ComponentConfig } from '../services/component-config';
/**
* We need another key to provide injected value.
*/
export declare const LocalConfigKey = "VaLocalConfig";
export declare const CONFIGS_DEFAULT: ComputedRef<never[]>;
export declare function useLocalConfig(): ComputedRef<ComponentConfig[]>;
export declare function provideLocalConfig(config: ComputedRef<ComponentConfig[]>): void;
export declare function useLocalConfigProvider(config: ComputedRef<ComponentConfig>): void;