import type { ElementsInstance } from '@recurly/recurly-js'; import { PropsWithChildren } from 'react'; /** * A provider that provides the Elements instance via context. * * If used outside of a RecurlyProvider, it will throw an error. */ export declare function Elements({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element; /** * A hook that returns the Elements instance from context. * * If used outside of an Elements provider, it will throw an error. * * Within an Elements provider: * - If used on the server, it will return undefined. * - If used on the client, it will initially return undefined and then return * the provided Elements instance once the Recurly library is loaded. * * @param options - An object to provide an alternate contextual error message * to use if one tries to use this hook outside of an Elements provider. * * @returns The Elements instance. */ export declare function useElements(options?: { noProviderError?: string; }): ElementsInstance | undefined;