import React from "react"; import { DataSourceDefinition, RebaseData } from "@rebasepro/types"; /** * The data-source configuration provided to ``: the declared * definitions plus the built {@link RebaseData} instances for direct/custom * transports. * * The actual path-based routing is assembled by the navigation layer (which * has the collection registry) via `resolveDataSource` + `buildRoutedRebaseData` * and re-provided through `RebaseDataContext`. * * @internal */ export interface DataSourcesContextValue { /** All declared data sources, keyed by data-source key. */ registry: Record; /** * Built {@link RebaseData} for direct/custom data sources, keyed by * data-source key. Server-mediated sources are absent (they ride the * default client). */ sources: Record; } /** @internal */ export declare const DataSourcesContext: React.Context; /** * Access the data-source configuration provided to `` via the * `dataSources` prop. * @internal */ export declare const useDataSources: () => DataSourcesContextValue;