import { type DehydratedState, QueryClient } from '@tanstack/react-query'; import { type PropsWithChildren } from 'react'; export interface EcosystemContext { /** The embed key sent as `X-Embed-Key`, if any. */ embedKey: string | undefined; /** The Ecosystem API endpoint, ending in `/`. */ endpoint: string; } export interface EcosystemOptions { /** * Seam Ecosystem embed key (`eco_live_…`). * Required outside seam.co: the key's allowed origins must include the page origin. */ embedKey?: string | undefined; /** Seam Ecosystem API endpoint. Defaults to `https://ecosystem.seam.co/v1/`. */ ecosystemEndpoint?: string | undefined; } export interface EcosystemProviderProps extends EcosystemOptions, PropsWithChildren { queryClient?: QueryClient | undefined; /** Server data returned by `prefetchSupportedDevices` from `@seamapi/react/server.js`. */ dehydratedState?: DehydratedState | undefined; disableCssInjection?: boolean | undefined; disableFontInjection?: boolean | undefined; unminifiyCss?: boolean | undefined; } /** * Provides the Seam Ecosystem context for `CompatibleApps` and `SupportedDevices`. * * Unlike `SeamProvider`, this does not need a Seam publishable key * and does not load the Seam API client, so it stays lightweight. * Inside a `SeamProvider`, pass `embedKey` to the `SeamProvider` instead. */ export declare function EcosystemProvider({ children, queryClient, dehydratedState, disableCssInjection, disableFontInjection, unminifiyCss, ...options }: EcosystemProviderProps): JSX.Element; /** * Provides only the Ecosystem context; used by `SeamProvider`. * Unset options inherit from an enclosing provider. */ export declare function EcosystemContextProvider({ children, embedKey, ecosystemEndpoint, }: EcosystemOptions & PropsWithChildren): JSX.Element; export declare function useEcosystemContext(): EcosystemContext;