import { ComponentState } from "../component-state"; import { InstanceData } from "./instance-data"; export type StateChanged = { host: THost; state: ComponentState; previous: { state: ComponentState; }; /** * @deprecated This property is deprecated. Use `host` instead. */ appHost: THost; }; type ExtractInstanceFromStateChanged = T extends InstanceStateChanged ? F : never; export type InstanceStateChanged = TInstanceData & { previous: { state: ComponentState; }; stateVersion: number; }; export type InstanceStateChangedHandler, TInstanceData extends InstanceData = ExtractInstanceFromStateChanged> = (evt: TInstanceStateChanged) => Promise; export {}; //# sourceMappingURL=state-changed-types.d.ts.map