UNPKG

2.35 kBTypeScriptView Raw
1import { TInputDecorator, TOutputDecorator } from '@bearer/types/lib/input-output-decorators';
2import * as d from '@stencil/core/dist/declarations/index';
3export * from './decorators/functions';
4export { ComponentDidLoad, ComponentDidUnload, ComponentDidUpdate, ComponentWillLoad, ComponentWillUpdate, Config, EventEmitter, EventListenerEnable, FunctionalComponent } from '@stencil/core/dist/declarations';
5declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
6/**
7 * BearerState Decorator
8 */
9export interface IBearerStateDecoratorOptions {
10 statePropName?: string;
11}
12export declare type IBearerStateDecorator<T> = (options?: IBearerStateDecoratorOptions) => T;
13export declare const BearerState: IBearerStateDecorator<any>;
14/**
15 * Component Decorator
16 */
17export declare type IBearerComponentDecorator<T> = (options?: d.ComponentOptions) => T;
18export declare const Component: IBearerComponentDecorator<any>;
19/**
20 * RootComponent Decorator
21 */
22export interface BearerRootComponentOptions extends Omit<d.ComponentOptions, 'tag'> {
23 name: string;
24 styleUrl?: string;
25 shadow?: boolean;
26}
27export declare type IBearerRootComponentDecorator<T> = (options?: BearerRootComponentOptions) => T;
28export declare const RootComponent: IBearerRootComponentDecorator<any>;
29/**
30 * Input Decorator
31 */
32export declare const Input: TInputDecorator;
33/**
34 * Output Decorator
35 */
36export declare const Output: TOutputDecorator;
37export declare type BearerRef<T> = T;
38/**
39 * Build
40 */
41export declare const Build: d.UserBuildConditionals;
42/**
43 * Element
44 */
45export declare const Element: d.ElementDecorator;
46/**
47 * Event
48 */
49export declare const Event: d.EventDecorator;
50/**
51 * Listen
52 */
53export declare const Listen: d.ListenDecorator;
54/**
55 * Method
56 */
57export declare const Method: d.MethodDecorator;
58/**
59 * Prop
60 */
61export declare const Prop: d.PropDecorator;
62/**
63 * State
64 */
65export declare const State: d.StateDecorator;
66/**
67 * Watch
68 */
69export declare const Watch: d.WatchDecorator;
70/**
71 * Deprecated: Please use @Watch decorator instead
72 */
73export declare const PropWillChange: d.WatchDecorator;
74/**
75 * Deprecated: Please use @Watch decorator instead
76 */
77export declare const PropDidChange: d.WatchDecorator;
78export interface HostElement extends HTMLElement {
79}