1 | import { Client as IClient, Command, MetadataBearer, MiddlewareStack, RequestHandler } from "@aws-sdk/types";
|
2 | export interface SmithyConfiguration<HandlerOptions> {
|
3 | requestHandler: RequestHandler<any, any, HandlerOptions>;
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 | readonly apiVersion: string;
|
10 | }
|
11 | export declare type SmithyResolvedConfiguration<HandlerOptions> = SmithyConfiguration<HandlerOptions>;
|
12 | export declare class Client<HandlerOptions, ClientInput extends object, ClientOutput extends MetadataBearer, ResolvedClientConfiguration extends SmithyResolvedConfiguration<HandlerOptions>> implements IClient<ClientInput, ClientOutput, ResolvedClientConfiguration> {
|
13 | middlewareStack: MiddlewareStack<ClientInput, ClientOutput>;
|
14 | readonly config: ResolvedClientConfiguration;
|
15 | constructor(config: ResolvedClientConfiguration);
|
16 | send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options?: HandlerOptions): Promise<OutputType>;
|
17 | send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, cb: (err: any, data?: OutputType) => void): void;
|
18 | send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options: HandlerOptions, cb: (err: any, data?: OutputType) => void): void;
|
19 | destroy(): void;
|
20 | }
|