import type { Api, BeaconApi } from "./Api.js"; import type { OnRequestSend } from "./OnRequestSend.js"; import type { OnResponseReceive } from "./OnResponseReceive.js"; import type { ApiResponse } from "./ApiResponse.js"; import type { ServicesRecord } from "../services/ServicesRecord.js"; export type DefineApiOptions = { apiPath?: string; onRequestSend?: OnRequestSend; onResponseReceive?: OnResponseReceive; }; export type CallApiOptions = { fetcher?: typeof fetch; }; export type DefineApiResult> = { api: Api; beacon: BeaconApi; callApi: (options: CallApiOptions) => Api; resolveApiCall: (options: CallApiOptions, service: string, target: string, properties: string[], body?: Uint8Array | null, key?: string) => Promise>; }; export declare function defineApi>({ apiPath, onRequestSend, onResponseReceive, }?: DefineApiOptions): DefineApiResult;