import { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator, } from "@smithy/types"; import { BedrockRuntimeClient } from "./BedrockRuntimeClient"; import { ApplyGuardrailCommandInput, ApplyGuardrailCommandOutput, } from "./commands/ApplyGuardrailCommand"; import { ConverseCommandInput, ConverseCommandOutput } from "./commands/ConverseCommand"; import { ConverseStreamCommandInput, ConverseStreamCommandOutput, } from "./commands/ConverseStreamCommand"; import { CountTokensCommandInput, CountTokensCommandOutput } from "./commands/CountTokensCommand"; import { GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput, } from "./commands/GetAsyncInvokeCommand"; import { InvokeGuardrailChecksCommandInput, InvokeGuardrailChecksCommandOutput, } from "./commands/InvokeGuardrailChecksCommand"; import { InvokeModelCommandInput, InvokeModelCommandOutput } from "./commands/InvokeModelCommand"; import { InvokeModelWithBidirectionalStreamCommandInput, InvokeModelWithBidirectionalStreamCommandOutput, } from "./commands/InvokeModelWithBidirectionalStreamCommand"; import { InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, } from "./commands/InvokeModelWithResponseStreamCommand"; import { ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput, } from "./commands/ListAsyncInvokesCommand"; import { StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput, } from "./commands/StartAsyncInvokeCommand"; export interface BedrockRuntimeRequestOptions extends __HttpHandlerOptions { metricsRecorder?: __MetricsRecorder; } export interface BedrockRuntime { applyGuardrail( args: ApplyGuardrailCommandInput, options?: BedrockRuntimeRequestOptions, ): Promise; applyGuardrail( args: ApplyGuardrailCommandInput, cb: (err: any, data?: ApplyGuardrailCommandOutput) => void, ): void; applyGuardrail( args: ApplyGuardrailCommandInput, options: BedrockRuntimeRequestOptions, cb: (err: any, data?: ApplyGuardrailCommandOutput) => void, ): void; converse( args: ConverseCommandInput, options?: BedrockRuntimeRequestOptions, ): Promise; converse(args: ConverseCommandInput, cb: (err: any, data?: ConverseCommandOutput) => void): void; converse( args: ConverseCommandInput, options: BedrockRuntimeRequestOptions, cb: (err: any, data?: ConverseCommandOutput) => void, ): void; converseStream( args: ConverseStreamCommandInput, options?: BedrockRuntimeRequestOptions, ): Promise; converseStream( args: ConverseStreamCommandInput, cb: (err: any, data?: ConverseStreamCommandOutput) => void, ): void; converseStream( args: ConverseStreamCommandInput, options: BedrockRuntimeRequestOptions, cb: (err: any, data?: ConverseStreamCommandOutput) => void, ): void; countTokens( args: CountTokensCommandInput, options?: BedrockRuntimeRequestOptions, ): Promise; countTokens( args: CountTokensCommandInput, cb: (err: any, data?: CountTokensCommandOutput) => void, ): void; countTokens( args: CountTokensCommandInput, options: BedrockRuntimeRequestOptions, cb: (err: any, data?: CountTokensCommandOutput) => void, ): void; getAsyncInvoke( args: GetAsyncInvokeCommandInput, options?: BedrockRuntimeRequestOptions, ): Promise; getAsyncInvoke( args: GetAsyncInvokeCommandInput, cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void, ): void; getAsyncInvoke( args: GetAsyncInvokeCommandInput, options: BedrockRuntimeRequestOptions, cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void, ): void; invokeGuardrailChecks( args: InvokeGuardrailChecksCommandInput, options?: BedrockRuntimeRequestOptions, ): Promise; invokeGuardrailChecks( args: InvokeGuardrailChecksCommandInput, cb: (err: any, data?: InvokeGuardrailChecksCommandOutput) => void, ): void; invokeGuardrailChecks( args: InvokeGuardrailChecksCommandInput, options: BedrockRuntimeRequestOptions, cb: (err: any, data?: InvokeGuardrailChecksCommandOutput) => void, ): void; invokeModel( args: InvokeModelCommandInput, options?: BedrockRuntimeRequestOptions, ): Promise; invokeModel( args: InvokeModelCommandInput, cb: (err: any, data?: InvokeModelCommandOutput) => void, ): void; invokeModel( args: InvokeModelCommandInput, options: BedrockRuntimeRequestOptions, cb: (err: any, data?: InvokeModelCommandOutput) => void, ): void; invokeModelWithBidirectionalStream( args: InvokeModelWithBidirectionalStreamCommandInput, options?: BedrockRuntimeRequestOptions, ): Promise; invokeModelWithBidirectionalStream( args: InvokeModelWithBidirectionalStreamCommandInput, cb: (err: any, data?: InvokeModelWithBidirectionalStreamCommandOutput) => void, ): void; invokeModelWithBidirectionalStream( args: InvokeModelWithBidirectionalStreamCommandInput, options: BedrockRuntimeRequestOptions, cb: (err: any, data?: InvokeModelWithBidirectionalStreamCommandOutput) => void, ): void; invokeModelWithResponseStream( args: InvokeModelWithResponseStreamCommandInput, options?: BedrockRuntimeRequestOptions, ): Promise; invokeModelWithResponseStream( args: InvokeModelWithResponseStreamCommandInput, cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void, ): void; invokeModelWithResponseStream( args: InvokeModelWithResponseStreamCommandInput, options: BedrockRuntimeRequestOptions, cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void, ): void; listAsyncInvokes(): Promise; listAsyncInvokes( args: ListAsyncInvokesCommandInput, options?: BedrockRuntimeRequestOptions, ): Promise; listAsyncInvokes( args: ListAsyncInvokesCommandInput, cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void, ): void; listAsyncInvokes( args: ListAsyncInvokesCommandInput, options: BedrockRuntimeRequestOptions, cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void, ): void; startAsyncInvoke( args: StartAsyncInvokeCommandInput, options?: BedrockRuntimeRequestOptions, ): Promise; startAsyncInvoke( args: StartAsyncInvokeCommandInput, cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void, ): void; startAsyncInvoke( args: StartAsyncInvokeCommandInput, options: BedrockRuntimeRequestOptions, cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void, ): void; paginateListAsyncInvokes( args?: ListAsyncInvokesCommandInput, paginationConfig?: Pick< PaginationConfiguration, Exclude >, ): Paginator; } export declare class BedrockRuntime extends BedrockRuntimeClient implements BedrockRuntime {}