/** * `UIAdapterProvider` / `useAdapter`: the indirection that lets `veryfront/ui` * skins resolve their behavioural mechanics from a swappable adapter. * * - With **no provider**, `useAdapter()` returns the zero-dependency * `builtinAdapter`, so nothing changes for no-dep users and there is exactly * one code path. * - `UIAdapterProvider` accepts a **partial** map that merges over the builtin * (and over any inherited parent adapter), so an app can override just * `disclosure` and leave everything else zero-dependency. * * @module react/components/ui/adapter/context */ import * as React from "react"; import type { PartialUIAdapter, UIAdapter } from "./contract.js"; /** Provide (a partial) UI-primitive adapter to the subtree. */ export declare function UIAdapterProvider({ adapter, children }: { adapter: PartialUIAdapter; children: React.ReactNode; }): React.ReactElement; /** Resolve the active UI-primitive adapter. Never returns null (defaults to builtin). */ export declare function useAdapter(): UIAdapter; //# sourceMappingURL=context.d.ts.map