declare type StateCallback = (key?: string | number | symbol, value?: any) => void; declare class State { private prototype: any; set(state: object): void; static createState(callback: StateCallback): State; static createArrayProxy(array: Array, callback: StateCallback): Array; } declare interface Attributes { [key: string]: string; } declare interface ComponentOptions { name: string, styles?: Array, useShadow?: boolean; } declare interface Template { source: string; data: Array } declare abstract class Component extends HTMLElement { private observer: MutationObserver; attribs: A; state: T; root: ShadowRoot | HTMLElement; private connectedCallback(): void; private disconnectedCallback(): void; abstract render(attribs?: A): Template | void; didLoad(): void; didUpdate(): void; shouldUpdate(): boolean; willUnload(): void; static create(options: ComponentOptions, component: CustomElementConstructor | Function): void; static mount(component: CustomElementConstructor | Function, container: HTMLElement): void; } declare function html(strings: TemplateStringsArray, ...values: Array): Template; export { Component, State, Attributes, Template, html };