UNPKG

@difizen/mana-core

Version:

19 lines 865 B
import type { Newable } from '@difizen/mana-common'; import type { Syringe } from '@difizen/mana-syringe'; import type { ManaModule } from '../module'; import type { SlotPreference, ViewPreference } from './view-protocol'; import type { View } from './view-protocol'; export declare const createViewPreference: (...preferences: ViewPreference[]) => { token: Syringe.DefinedToken; useValue: ViewPreference<Record<any, any>>[]; }; export declare const createSlotPreference: (...preferences: SlotPreference[]) => { token: Syringe.DefinedToken; useValue: SlotPreference<Record<string, any>>[]; }; export interface ViewDecoratorOption { asChild?: boolean; registry?: Syringe.Registry; } export declare function view<T extends View>(factoryId: string, viewModule?: ManaModule): (target: Newable<T>) => void; //# sourceMappingURL=decorator.d.ts.map