1 | import { Command } from "./command";
|
2 | import { MiddlewareStack } from "./middleware";
|
3 | import { MetadataBearer } from "./response";
|
4 |
|
5 |
|
6 |
|
7 | interface InvokeFunction<InputTypes extends object, OutputTypes extends MetadataBearer, ResolvedClientConfiguration> {
|
8 | <InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options?: any): Promise<OutputType>;
|
9 | <InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options: any, cb: (err: any, data?: OutputType) => void): void;
|
10 | <InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options?: any, cb?: (err: any, data?: OutputType) => void): Promise<OutputType> | void;
|
11 | }
|
12 | /**
|
13 | * A general interface for service clients, idempotent to browser or node clients
|
14 | * This type corresponds to SmithyClient(https:
|
15 | * It's provided for using without importing the SmithyClient class.
|
16 | */
|
17 | export interface Client<Input extends object, Output extends MetadataBearer, ResolvedClientConfiguration> {
|
18 | readonly config: ResolvedClientConfiguration;
|
19 | middlewareStack: MiddlewareStack<Input, Output>;
|
20 | send: InvokeFunction<Input, Output, ResolvedClientConfiguration>;
|
21 | destroy: () => void;
|
22 | }
|
23 | export {};
|
24 |
|
\ | No newline at end of file |