import type { MutableRefObject } from "react"; import type { PayPalHostedFieldsRegistered } from "../../types/payPalHostedFieldTypes"; /** * Custom hook to store registered hosted fields children * Each `PayPalHostedField` component should be registered on the parent provider * * @param initialValue the initially registered components * @returns at first, an {@link Object} containing the registered hosted fields, * and at the second a function handler to register the hosted fields components */ export declare const useHostedFieldsRegister: (initialValue?: {}) => [MutableRefObject, (component: PayPalHostedFieldsRegistered) => void];