import type { UseApiClientOptions } from "./useApiClient.js"; export interface InputStreamSendInstance { /** Send data to the input stream */ send: (data: TData) => void; /** Whether a send is currently in progress */ isLoading: boolean; /** Any error that occurred during the last send */ error?: Error; /** Whether the hook is ready to send (has runId and access token) */ isReady: boolean; } /** * Hook to send data to an input stream on a running task. * * @template TData - The type of data to send * @param streamId - The input stream identifier * @param runId - The run to send input stream data to * @param options - API client options (e.g. accessToken) * * @example * ```tsx * const { send, isLoading } = useInputStreamSend("my-stream", runId, { accessToken }); * send({ message: "hello" }); * ``` */ export declare function useInputStreamSend(streamId: string, runId?: string, options?: UseApiClientOptions): InputStreamSendInstance;