import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types"; import { BedrockRuntimeClient } from "./BedrockRuntimeClient"; import { type ApplyGuardrailCommandInput, type ApplyGuardrailCommandOutput } from "./commands/ApplyGuardrailCommand"; import { type ConverseCommandInput, type ConverseCommandOutput } from "./commands/ConverseCommand"; import { type ConverseStreamCommandInput, type ConverseStreamCommandOutput } from "./commands/ConverseStreamCommand"; import { type CountTokensCommandInput, type CountTokensCommandOutput } from "./commands/CountTokensCommand"; import { type GetAsyncInvokeCommandInput, type GetAsyncInvokeCommandOutput } from "./commands/GetAsyncInvokeCommand"; import { type InvokeModelCommandInput, type InvokeModelCommandOutput } from "./commands/InvokeModelCommand"; import { type InvokeModelWithBidirectionalStreamCommandInput, type InvokeModelWithBidirectionalStreamCommandOutput } from "./commands/InvokeModelWithBidirectionalStreamCommand"; import { type InvokeModelWithResponseStreamCommandInput, type InvokeModelWithResponseStreamCommandOutput } from "./commands/InvokeModelWithResponseStreamCommand"; import { type ListAsyncInvokesCommandInput, type ListAsyncInvokesCommandOutput } from "./commands/ListAsyncInvokesCommand"; import { type StartAsyncInvokeCommandInput, type StartAsyncInvokeCommandOutput } from "./commands/StartAsyncInvokeCommand"; export interface BedrockRuntime { /** * @see {@link ApplyGuardrailCommand} */ applyGuardrail(args: ApplyGuardrailCommandInput, options?: __HttpHandlerOptions): Promise; applyGuardrail(args: ApplyGuardrailCommandInput, cb: (err: any, data?: ApplyGuardrailCommandOutput) => void): void; applyGuardrail(args: ApplyGuardrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ApplyGuardrailCommandOutput) => void): void; /** * @see {@link ConverseCommand} */ converse(args: ConverseCommandInput, options?: __HttpHandlerOptions): Promise; converse(args: ConverseCommandInput, cb: (err: any, data?: ConverseCommandOutput) => void): void; converse(args: ConverseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ConverseCommandOutput) => void): void; /** * @see {@link ConverseStreamCommand} */ converseStream(args: ConverseStreamCommandInput, options?: __HttpHandlerOptions): Promise; converseStream(args: ConverseStreamCommandInput, cb: (err: any, data?: ConverseStreamCommandOutput) => void): void; converseStream(args: ConverseStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ConverseStreamCommandOutput) => void): void; /** * @see {@link CountTokensCommand} */ countTokens(args: CountTokensCommandInput, options?: __HttpHandlerOptions): Promise; countTokens(args: CountTokensCommandInput, cb: (err: any, data?: CountTokensCommandOutput) => void): void; countTokens(args: CountTokensCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CountTokensCommandOutput) => void): void; /** * @see {@link GetAsyncInvokeCommand} */ getAsyncInvoke(args: GetAsyncInvokeCommandInput, options?: __HttpHandlerOptions): Promise; getAsyncInvoke(args: GetAsyncInvokeCommandInput, cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void): void; getAsyncInvoke(args: GetAsyncInvokeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void): void; /** * @see {@link InvokeModelCommand} */ invokeModel(args: InvokeModelCommandInput, options?: __HttpHandlerOptions): Promise; invokeModel(args: InvokeModelCommandInput, cb: (err: any, data?: InvokeModelCommandOutput) => void): void; invokeModel(args: InvokeModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeModelCommandOutput) => void): void; /** * @see {@link InvokeModelWithBidirectionalStreamCommand} */ invokeModelWithBidirectionalStream(args: InvokeModelWithBidirectionalStreamCommandInput, options?: __HttpHandlerOptions): Promise; invokeModelWithBidirectionalStream(args: InvokeModelWithBidirectionalStreamCommandInput, cb: (err: any, data?: InvokeModelWithBidirectionalStreamCommandOutput) => void): void; invokeModelWithBidirectionalStream(args: InvokeModelWithBidirectionalStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeModelWithBidirectionalStreamCommandOutput) => void): void; /** * @see {@link InvokeModelWithResponseStreamCommand} */ invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, options?: __HttpHandlerOptions): Promise; invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void): void; invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void): void; /** * @see {@link ListAsyncInvokesCommand} */ listAsyncInvokes(): Promise; listAsyncInvokes(args: ListAsyncInvokesCommandInput, options?: __HttpHandlerOptions): Promise; listAsyncInvokes(args: ListAsyncInvokesCommandInput, cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void): void; listAsyncInvokes(args: ListAsyncInvokesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void): void; /** * @see {@link StartAsyncInvokeCommand} */ startAsyncInvoke(args: StartAsyncInvokeCommandInput, options?: __HttpHandlerOptions): Promise; startAsyncInvoke(args: StartAsyncInvokeCommandInput, cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void): void; startAsyncInvoke(args: StartAsyncInvokeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void): void; /** * @see {@link ListAsyncInvokesCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link ListAsyncInvokesCommandOutput}. */ paginateListAsyncInvokes(args?: ListAsyncInvokesCommandInput, paginationConfig?: Omit): Paginator; } /** *

Describes the API operations for running inference using Amazon Bedrock models.

* @public */ export declare class BedrockRuntime extends BedrockRuntimeClient implements BedrockRuntime { }