import { Command } from "../types.js"; import { BagTemplate } from "../types.template.js"; import { GetConfigurableType, GetUpdateType, UseStreamTransport } from "./types.js"; //#region src/ui/transport.d.ts interface FetchStreamTransportOptions { /** * The URL of the API to use. */ apiUrl: string; /** * Default headers to send with requests. */ defaultHeaders?: HeadersInit; /** * Specify a custom fetch implementation. */ fetch?: typeof fetch | ((...args: any[]) => any); /** * Callback that is called before the request is made. */ onRequest?: (url: string, init: RequestInit) => Promise | RequestInit; } declare class FetchStreamTransport = Record, Bag extends BagTemplate = BagTemplate> implements UseStreamTransport { private readonly options; constructor(options: FetchStreamTransportOptions); stream(payload: { input: GetUpdateType | null | undefined; context: GetConfigurableType | undefined; command: Command | undefined; signal: AbortSignal; }): Promise>; } //#endregion export { FetchStreamTransport }; //# sourceMappingURL=transport.d.ts.map