/** * Copyright (c) 2023-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ import type { Ref } from "react"; type PossibleRef = Ref | undefined; /** * Applies multiple refs to a single element. This is useful for when you need to utilize a local ref * and a forwarded ref simultaneously. * Taken from https://github.com/chakra-ui/ark/blob/main/packages/frameworks/react/src/compose-refs.ts */ export declare const composeRefs: (...refs: PossibleRef[]) => (node: T) => void; export {};