1 | import { LibraryOptions, ResourcesConfig } from '@aws-amplify/core';
|
2 | import { AmplifyOutputs, LegacyConfig } from '@aws-amplify/core/internals/utils';
|
3 | export declare const DefaultAmplify: {
|
4 | /**
|
5 | * Configures Amplify with the {@link resourceConfig} and {@link libraryOptions}.
|
6 | *
|
7 | * @param resourceConfig The {@link ResourcesConfig} object that is typically imported from the
|
8 | * `amplifyconfiguration.json` file. It can also be an object literal created inline when calling `Amplify.configure`.
|
9 | * @param libraryOptions The {@link LibraryOptions} additional options for the library.
|
10 | *
|
11 | * @example
|
12 | * import config from './amplifyconfiguration.json';
|
13 | *
|
14 | * Amplify.configure(config);
|
15 | */
|
16 | configure(resourceConfig: ResourcesConfig | LegacyConfig | AmplifyOutputs, libraryOptions?: LibraryOptions): void;
|
17 | /**
|
18 | * Returns the {@link ResourcesConfig} object passed in as the `resourceConfig` parameter when calling
|
19 | * `Amplify.configure`.
|
20 | *
|
21 | * @returns An {@link ResourcesConfig} object.
|
22 | */
|
23 | getConfig(): ResourcesConfig;
|
24 | };
|