import { type RequestExtras } from '../../api/http';
interface RequestExtrasCtx {
    options: RequestInit;
}
declare const requestExtrasCtx: import("react").Context<RequestExtrasCtx>;
export default requestExtrasCtx;
/**
 * Get request extras to be passed into request function.
 */
export declare function useRequestExtras(): RequestExtras;
/**
 * Request extras provider that sets the default options for all requests.
 *
 * @param props
 * @param props.children Child components
 * @param props.options RequestInit object to provide
 */
export declare function RequestExtrasProvider({ children, options, }: {
    children: React.ReactNode;
    options: RequestInit;
}): JSX.Element;
/**
 * Request extras provider which merges the provided options with the parent options.
 *
 * @param props
 * @param props.children Child components
 * @param props.options RequestInit object to merge with parent options
 */
export declare function PartialRequestExtrasProvider({ children, options, }: {
    children: React.ReactNode;
    options: RequestInit;
}): JSX.Element;
//# sourceMappingURL=request-extras-context.d.ts.map