import { EqualityCheck, Facet, NoValue, ExtractFacetValues } from '../types'; /** * Helper hook that allows mapping a value from a facet with local variables/props in a React component * * @param selector function that takes value from provided facets and maps them to a new value * @param dependencies variable used by the selector that are available in scope (similar as dependencies of useEffect) * @param facets facets that we will listen for its values to be mapped * @param equalityCheck optional, has a default for immutable values * * We pass the dependencies of the callback as the second argument so we can leverage the eslint-plugin-react-hooks option for additionalHooks. * Having this as the second argument allows the linter to work. * * @returns a new facet definition that can be consumed as a regular facet */ export declare function useFacetMap[], T extends [...Y]>(selector: (...args: ExtractFacetValues) => M | NoValue, dependencies: unknown[], facets: T, equalityCheck?: EqualityCheck): Facet;