UNPKG

777 BTypeScriptView Raw
1import { Provider, UserAgent } from "@smithy/types";
2import { DefaultUserAgentOptions } from "./configurations";
3export interface PreviouslyResolved {
4 userAgentAppId: Provider<string | undefined>;
5}
6/**
7 * @internal
8 *
9 * Default provider to the user agent in browsers. It's a best effort to infer
10 * the device information. It uses bowser library to detect the browser and version
11 */
12export declare const createDefaultUserAgentProvider: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
13/**
14 * @internal
15 * @deprecated use createDefaultUserAgentProvider
16 */
17export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;