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; /** * Groups list, metadata and options reads into one `POST /q`. Defaults to * `true`. Pass `false` when the host backend does not implement `/q`: every * read then goes straight to its own GET and no POST is attempted. When * left on and `/q` answers 404/405, the batch turns itself off for that * client after the first failed attempt and the read falls back to GET. */ batch?: boolean; children: React.ReactNode; } export declare function ApiProvider({ client, batch, 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