/*! * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and limitations under the License. */ import { ReactNode } from "react"; import { FullScreenOverlayProviderProps } from "./FullScreenOverlayContext.js"; import { type DefaultSupportedLanguages, type TranslationProviderProps as OdysseyTranslationProviderProps } from "./i18n.generated/i18n.js"; import { OdysseyCacheProviderProps } from "./OdysseyCacheProvider.js"; import { OdysseyThemeProviderProps } from "./OdysseyThemeProvider.js"; export type OdysseyProviderProps = Omit & FullScreenOverlayProviderProps & OdysseyThemeProviderProps & OdysseyTranslationProviderProps & { /** The content to render within the Odyssey context providers. */ children: ReactNode; /** * If `true`, Odyssey components may animate unless the user prefers reduced motion. * @default true */ hasAnimations?: boolean; /** * If `true`, emits global CssBaseline reset styles. * @default true */ hasCssBaseline?: boolean; /** * If `true`, wraps children in a ScopedCssBaseline element. Note that this adds an extra `div` to the DOM. * @default true */ hasScopedCssBaseline?: boolean; /** * If `true`, wraps children with OdysseyTranslationProvider. Set to `false` only when a translation provider already exists higher in the tree. * @default true */ hasTranslationProvider?: boolean; }; declare const MemoizedOdysseyProvider: import("react").MemoExoticComponent<(({ children, contrastMode, designTokensOverride, emotionRoot, emotionRootElement, fullScreenOverlayId, hasAnimations, hasCssBaseline: hasGlobalCss, hasScopedCssBaseline, hasTranslationProvider, hasWrapperElement, languageCode, nonce, overlayParentElement, overlayType, shadowDomElement, shadowRootElement, stylisPlugins, themeOverride, translationOverrides, }: OdysseyProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element)>; export { MemoizedOdysseyProvider as OdysseyProvider }; //# sourceMappingURL=OdysseyProvider.d.ts.map