import { ConfigInterface } from '../config'; import { MarkdownUrlResolver, SidePanelContainment } from '../config/config'; import { SpecType } from '../contexts'; /** * Builds the shared DocumentContext value (deref resolver, portal/root refs, * theme-derived settings) plus the CSS custom properties for the theme, * used by both AsyncAPIDocumentProvider and OpenAPIDocumentProvider, which * differ only in the spec type they declare and the portal element's * className. Generic so the returned contextValue keeps the caller's literal * `specType` and document type, and thus lands as the right member of the * DocumentContextValue union. */ export declare function useDocumentProviderValue(specType: S, document: D, config?: ConfigInterface): { contextValue: { specType: S; document: D; deref: import('../helpers/jsonPointer').Deref; portalHost: HTMLDivElement | null; rootElement: HTMLDivElement | null; topOffset: number; sidePanelContainment: SidePanelContainment; sidePanelTopOffset: number; defaultSchemaExpanded: boolean; depthColors: string[]; showExtensions: boolean; showCodeSamples: boolean; markdownUrl: MarkdownUrlResolver | undefined; }; themeVars: Record; setPortalHost: import('react').Dispatch>; setRootElement: import('react').Dispatch>; };