import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { AmplifyUIBuilderClient } from "./AmplifyUIBuilderClient" ; import { CreateComponentCommand , CreateComponentCommandInput , CreateComponentCommandOutput , } from "./commands/CreateComponentCommand" ; import { CreateThemeCommand , CreateThemeCommandInput , CreateThemeCommandOutput } from "./commands/CreateThemeCommand" ; import { DeleteComponentCommand , DeleteComponentCommandInput , DeleteComponentCommandOutput , } from "./commands/DeleteComponentCommand" ; import { DeleteThemeCommand , DeleteThemeCommandInput , DeleteThemeCommandOutput } from "./commands/DeleteThemeCommand" ; import { ExchangeCodeForTokenCommand , ExchangeCodeForTokenCommandInput , ExchangeCodeForTokenCommandOutput , } from "./commands/ExchangeCodeForTokenCommand" ; import { ExportComponentsCommand , ExportComponentsCommandInput , ExportComponentsCommandOutput , } from "./commands/ExportComponentsCommand" ; import { ExportThemesCommand , ExportThemesCommandInput , ExportThemesCommandOutput , } from "./commands/ExportThemesCommand" ; import { GetComponentCommand , GetComponentCommandInput , GetComponentCommandOutput , } from "./commands/GetComponentCommand" ; import { GetThemeCommand , GetThemeCommandInput , GetThemeCommandOutput } from "./commands/GetThemeCommand" ; import { ListComponentsCommand , ListComponentsCommandInput , ListComponentsCommandOutput , } from "./commands/ListComponentsCommand" ; import { ListThemesCommand , ListThemesCommandInput , ListThemesCommandOutput } from "./commands/ListThemesCommand" ; import { RefreshTokenCommand , RefreshTokenCommandInput , RefreshTokenCommandOutput , } from "./commands/RefreshTokenCommand" ; import { UpdateComponentCommand , UpdateComponentCommandInput , UpdateComponentCommandOutput , } from "./commands/UpdateComponentCommand" ; import { UpdateThemeCommand , UpdateThemeCommandInput , UpdateThemeCommandOutput } from "./commands/UpdateThemeCommand" ; /**
 * <p>The Amplify UI Builder API provides a programmatic interface for creating and configuring
 *       user interface (UI) component libraries and themes for use in your Amplify applications. You
 *       can then connect these UI components to an application's backend Amazon Web Services
 *       resources.</p>
 *          <p>You can also use the Amplify Studio visual designer to create UI components and model data
 *       for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
 *         <i>Amplify Docs</i>.</p>
 *          <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation
 *       for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
 *       deploying an Amplify application to Amazon Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify Console User Guide</a>.</p>
 */ export class AmplifyUIBuilder extends AmplifyUIBuilderClient { /**
     * <p>Creates a new component for an Amplify app.</p>
     */ public createComponent ( args , options ? ) ; public createComponent ( args , cb ) ; public createComponent ( args , options , cb ) ; public createComponent ( args , optionsOrCb ? , cb ? ) { const command = new CreateComponentCommand ( 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 ) ; } } /**
     * <p>Creates a theme to apply to the components in an Amplify app.</p>
     */ public createTheme ( args , options ? ) ; public createTheme ( args , cb ) ; public createTheme ( args , options , cb ) ; public createTheme ( args , optionsOrCb ? , cb ? ) { const command = new CreateThemeCommand ( 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 ) ; } } /**
     * <p>Deletes a component from an Amplify app.</p>
     */ public deleteComponent ( args , options ? ) ; public deleteComponent ( args , cb ) ; public deleteComponent ( args , options , cb ) ; public deleteComponent ( args , optionsOrCb ? , cb ? ) { const command = new DeleteComponentCommand ( 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 ) ; } } /**
     * <p>Deletes a theme from an Amplify app.</p>
     */ public deleteTheme ( args , options ? ) ; public deleteTheme ( args , cb ) ; public deleteTheme ( args , options , cb ) ; public deleteTheme ( args , optionsOrCb ? , cb ? ) { const command = new DeleteThemeCommand ( 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 ) ; } } /**
     * <p>Exchanges an access code for a token.</p>
     */ public exchangeCodeForToken ( args , options ? ) ; public exchangeCodeForToken ( args , cb ) ; public exchangeCodeForToken ( args , options , cb ) ; public exchangeCodeForToken ( args , optionsOrCb ? , cb ? ) { const command = new ExchangeCodeForTokenCommand ( 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 ) ; } } /**
     * <p>Exports component configurations to code that is ready to integrate into an Amplify
     *       app.</p>
     */ public exportComponents ( args , options ? ) ; public exportComponents ( args , cb ) ; public exportComponents ( args , options , cb ) ; public exportComponents ( args , optionsOrCb ? , cb ? ) { const command = new ExportComponentsCommand ( 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 ) ; } } /**
     * <p>Exports theme configurations to code that is ready to integrate into an Amplify
     *       app.</p>
     */ public exportThemes ( args , options ? ) ; public exportThemes ( args , cb ) ; public exportThemes ( args , options , cb ) ; public exportThemes ( args , optionsOrCb ? , cb ? ) { const command = new ExportThemesCommand ( 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 ) ; } } /**
     * <p>Returns an existing component for an Amplify app.</p>
     */ public getComponent ( args , options ? ) ; public getComponent ( args , cb ) ; public getComponent ( args , options , cb ) ; public getComponent ( args , optionsOrCb ? , cb ? ) { const command = new GetComponentCommand ( 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 ) ; } } /**
     * <p>Returns an existing theme for an Amplify app.</p>
     */ public getTheme ( args , options ? ) ; public getTheme ( args , cb ) ; public getTheme ( args , options , cb ) ; public getTheme ( args , optionsOrCb ? , cb ? ) { const command = new GetThemeCommand ( 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 ) ; } } /**
     * <p>Retrieves a list of components for a specified Amplify app and backend environment.</p>
     */ public listComponents ( args , options ? ) ; public listComponents ( args , cb ) ; public listComponents ( args , options , cb ) ; public listComponents ( args , optionsOrCb ? , cb ? ) { const command = new ListComponentsCommand ( 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 ) ; } } /**
     * <p>Retrieves a list of themes for a specified Amplify app and backend environment.</p>
     */ public listThemes ( args , options ? ) ; public listThemes ( args , cb ) ; public listThemes ( args , options , cb ) ; public listThemes ( args , optionsOrCb ? , cb ? ) { const command = new ListThemesCommand ( 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 ) ; } } /**
     * <p>Refreshes a previously issued access token that might have expired.</p>
     */ public refreshToken ( args , options ? ) ; public refreshToken ( args , cb ) ; public refreshToken ( args , options , cb ) ; public refreshToken ( args , optionsOrCb ? , cb ? ) { const command = new RefreshTokenCommand ( 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 ) ; } } /**
     * <p>Updates an existing component.</p>
     */ public updateComponent ( args , options ? ) ; public updateComponent ( args , cb ) ; public updateComponent ( args , options , cb ) ; public updateComponent ( args , optionsOrCb ? , cb ? ) { const command = new UpdateComponentCommand ( 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 ) ; } } /**
     * <p>Updates an existing theme.</p>
     */ public updateTheme ( args , options ? ) ; public updateTheme ( args , cb ) ; public updateTheme ( args , options , cb ) ; public updateTheme ( args , optionsOrCb ? , cb ? ) { const command = new UpdateThemeCommand ( 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 ) ; } } }