import { BedrockRuntimeClientConfig, ConverseResponse, ConverseStreamResponse, GetAsyncInvokeCommandInput, GetAsyncInvokeResponse, ListAsyncInvokesCommandInput, ListAsyncInvokesResponse, StartAsyncInvokeCommandInput, StartAsyncInvokeResponse } from '@aws-sdk/client-bedrock-runtime'; import { SendMessageInput } from './BedrockTypes'; export interface IAwsBedrock { /** * Send a message to a Bedrock model * More info: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/ConverseCommand/ * @param input - The input for the message * @returns The response from the message */ sendMessage(input: SendMessageInput): Promise; /** * Send a message to a Bedrock model with streaming response. Could be used for cases when you expect to receive a stream of data from the model. * More info: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/ConverseStreamCommand/ * @param input - The input for the message * @returns The response from the message */ sendMessageWithStream(input: SendMessageInput): Promise; /** * Send an asynchronous request to a Bedrock model. Could be used for cases when you expect that the request will take a long time to complete. * More info: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/StartAsyncInvokeCommand/ * @param input - The input for the request * @returns The response from the request */ sendAsyncRequest(input: StartAsyncInvokeCommandInput): Promise; /** * Get the status of an asynchronous request to a Bedrock model. * More info: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/GetAsyncInvokeCommand/ * @param input - The input for the request * @returns The response from the request */ getAsyncRequestStatus(input: GetAsyncInvokeCommandInput): Promise; /** * List all asynchronous requests to a Bedrock model. * More info: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/ListAsyncRequestsCommand/ * @param input - The input for the request * @returns The response from the request */ listAsyncRequests(input: ListAsyncInvokesCommandInput): Promise; } export declare class AwsBedrock implements IAwsBedrock { private client; constructor(config: BedrockRuntimeClientConfig); sendMessage(input: SendMessageInput): Promise; sendMessageWithStream(input: SendMessageInput): Promise; sendAsyncRequest(input: StartAsyncInvokeCommandInput): Promise; getAsyncRequestStatus(input: GetAsyncInvokeCommandInput): Promise; listAsyncRequests(input: ListAsyncInvokesCommandInput): Promise; }