import { EchoServiceClient } from "./EchoServiceClient" ; import { EchoCommand , EchoCommandInput , EchoCommandOutput } from "./commands/EchoCommand" ; import { LengthCommand , LengthCommandInput , LengthCommandOutput } from "./commands/LengthCommand" ; import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; export class EchoService extends EchoServiceClient { public echo ( args , options ? ) ; public echo ( args , cb ) ; public echo ( args , options , cb ) ; public echo ( args , optionsOrCb ? , cb ? ) { const command = new EchoCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public length ( args , options ? ) ; public length ( args , cb ) ; public length ( args , options , cb ) ; public length ( args , optionsOrCb ? , cb ? ) { const command = new LengthCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } }