import React from "react"; import type { ComponentOverrideMap } from "@rebasepro/cms-types"; /** * Internal state for the component override resolution chain. * Holds both global overrides (set on ``) and collection-scoped * overrides (set on individual collections). * * Resolution priority: collection > global > default. * * @internal */ interface ComponentOverrideState { globalOverrides: ComponentOverrideMap; collectionOverrides: ComponentOverrideMap; } export declare const ComponentOverrideContext: React.Context; /** * Provider set at the `` root level to supply global component overrides. * * @internal — Used by the Rebase component. End users set overrides via * the `components` prop on ``. */ export declare function GlobalComponentOverrideProvider({ overrides, children }: { overrides?: ComponentOverrideMap; children: React.ReactNode; }): React.JSX.Element; /** * Provider set at the collection level to layer collection-scoped overrides * on top of global overrides. * * When a collection defines `components`, this provider is mounted * around the collection's view subtree. Components within the subtree * will resolve overrides in order: collection → global → default. * * @internal — Used by DataCollectionView when a collection has * `components` defined. */ export declare function CollectionComponentOverrideProvider({ overrides, children }: { overrides?: ComponentOverrideMap; children: React.ReactNode; }): React.JSX.Element; export {};