import { Scope } from './types'; import { Component } from './component'; /** * Enters new variable scope context */ export declare function enterScope(host: Component, incoming?: Record): Scope; /** * Exit from current variable scope */ export declare function exitScope(host: Component): Scope; /** * Creates new scope from given component state */ export declare function createScope(host: Component, incoming?: Record): Scope; /** * Sets given object as current component scope */ export declare function setScope(host: Component, scope: Scope): Scope; /** * Returns current variable scope */ export declare function getScope(elem: Component): Scope; /** * Returns property with given name from component */ export declare function getProp(elem: Component, name: string): any; /** * Returns state value with given name from component */ export declare function getState(elem: Component, name: string): any; /** * Returns value of given runtime variable from component */ export declare function getVar(elem: Component, name: string): any; /** * Sets value of given runtime variable for component */ export declare function setVar(elem: Component, name: string, value: unknown): void;