import type { S } from '@state-designer/core'; /** * useSelector * @param state A state created with `createState`. * @param selectFn A function that returns information derived from a state update. * @param compareFn - (Optional) A function to test whether the new selection matches the old section. * @example const tables = useSelector(state, (update) => update.data.tables) */ export default function useSelector(state: State, selectFn: (update: State) => T, compareFn?: (prev: T, next: T) => boolean): T;