UNPKG

1.69 kBTypeScriptView Raw
1import { Client as IClient, Command, MetadataBearer, MiddlewareStack, RequestHandler } from "@aws-sdk/types";
2export interface SmithyConfiguration<HandlerOptions> {
3 requestHandler: RequestHandler<any, any, HandlerOptions>;
4 /**
5 * The API version set internally by the SDK, and is
6 * not planned to be used by customer code.
7 * @internal
8 */
9 readonly apiVersion: string;
10}
11export declare type SmithyResolvedConfiguration<HandlerOptions> = SmithyConfiguration<HandlerOptions>;
12export 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}