import { default as React } from 'react'; import { CapabilitySet, ControlPlaneApi, ControlPlaneOptions } from '../utils/control-plane-api'; export interface ControlPlaneContextValue { api: ControlPlaneApi; capabilities: CapabilitySet; loading: boolean; error: string; applicationId: string; environment: string; /** * Where this instance is, and the credential for it. * * Carried here so a screen that needs a second public client — the data * browser uses the Service API's inspection routes — can construct one * without reaching inside `ControlPlaneApi` for its configuration. */ baseUrl: string; token: string; reload: () => void; } export declare function ControlPlaneProvider({ options, children }: { options: ControlPlaneOptions; children: React.ReactNode; }): React.JSX.Element; export declare function useControlPlane(): ControlPlaneContextValue; /** * One asynchronous control-plane read, with its own loading and error state. * * Deliberately returns `undefined` rather than a placeholder while loading, so * a screen cannot accidentally render invented zeroes as measurements. */ export declare function useControlPlaneResource(load: (api: ControlPlaneApi) => Promise, dependencies: unknown[], options?: { enabled?: boolean; refreshMs?: number; subject?: string; }): { value: T | undefined; loading: boolean; error: string; refresh: () => void; }; //# sourceMappingURL=context.d.ts.map