export declare function useUIPluginState(onUpdate: (callback: (state: State) => void) => void): State | undefined;