import React from 'react'; /** Minimal axios-compatible client shape consumed by runtime-react. */ export interface ApiClient { get: (url: string, config?: any) => Promise<{ data: any; headers?: any; }>; post: (url: string, body?: any, config?: any) => Promise<{ data: any; headers?: any; }>; put: (url: string, body?: any, config?: any) => Promise<{ data: any; headers?: any; }>; delete: (url: string, config?: any) => Promise<{ data: any; headers?: any; }>; } export interface ApiProviderProps { client: ApiClient; children: React.ReactNode; } export declare function ApiProvider({ client, children }: ApiProviderProps): React.JSX.Element; /** Returns the host-injected api client. Throws if no is mounted. */ export declare function useApi(): ApiClient; /** Optional branch context — hosts that support tenant branches can supply * a `currentBranch` so DynamicTable resets pagination/selection on branch * switches. Hosts without branches can omit this provider entirely. */ export interface BranchState { id: string | number | null | undefined; } export interface BranchProviderProps { branch: BranchState; children: React.ReactNode; } export declare function BranchProvider({ branch, children }: BranchProviderProps): React.JSX.Element; export declare function useCurrentBranch(): BranchState; //# sourceMappingURL=api-context.d.ts.map