import { Class, Mixin } from '..'; export declare type ContextFn = (this: T, ctx: Context) => void; export declare type Deps = { [K in keyof T]-?: NonNullable; }; export declare type Fx = { fn: (deps: Deps) => R; cb?: (value: R) => boolean | void; dispose?: (() => void) | null; type?: any; initial?: any; target?: keyof T; keys?: Set; values?: Deps; pass?: boolean; }; export declare type Context = { $: Context & T; cleanup: () => void; effect: (fn: (ctx: Deps) => any, cb?: Fx['cb']) => void; reduce: (fn: (ctx: Deps) => R, initial?: R) => R; }; export declare const state:

(fn: ContextFn

) => (superclass: T) => T & Class<{ /** @private */ host: InstanceType; /** @private */ isMounted?: boolean | undefined; }>;