import Async from "typescene-async"; import { Label } from "../"; /** Shared factory implementation for a piece of text as a string and/or as (an observable value representing) a Label instance (or sub class); can be used in Component factory specs using UI.tl(...) or with backticks */ export declare class TextLabelFactory { /** Create the text label factory using the given string, stringable (object with .toString method) or an observable value, and a Label base class that is used if not overridden by string content prefix */ constructor(text: { toString; } | Async.ObservableValue<{ toString; }>, baseClass?: typeof Label); /** Get the encapsulated text as a string; adds a dependency on the observable value if called from an obserable value getter; trims {...} prefix if present */ toString(): string; /** Get the encapsulated text wrapped in a new Label (or derived) instance, or an observable value representing the instance; uses {...} prefix to control component type and its properties */ getComponent(): Label | Async.ObservableValue