import { WidgetConfig } from './types';
export declare class State<T> {
    private config;
    readonly ctx: any;
    private getTheme;
    INITIAL_STATE: any;
    _currentStateName: any;
    state: T;
    private _cache;
    changedHandler: (newValues: Partial<T>) => void;
    id: string;
    constructor(config: WidgetConfig<T>, ctx: any, getTheme: () => string);
    setState(stateName: string, resetState?: boolean): any;
    getStateValues(): T;
    private createNewStateFromConfig;
    private _themifyState;
}
