UNPKG

933 BTypeScriptView Raw
1import { Provider, UserAgent } from "@smithy/types";
2/**
3 * @public
4 */
5export interface UserAgentInputConfig {
6 /**
7 * The custom user agent header that would be appended to default one
8 */
9 customUserAgent?: string | UserAgent;
10}
11interface PreviouslyResolved {
12 defaultUserAgentProvider: Provider<UserAgent>;
13 runtime: string;
14}
15export interface UserAgentResolvedConfig {
16 /**
17 * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header.
18 * @internal
19 */
20 defaultUserAgentProvider: Provider<UserAgent>;
21 /**
22 * The custom user agent header that would be appended to default one
23 */
24 customUserAgent?: UserAgent;
25 /**
26 * The runtime environment
27 */
28 runtime: string;
29}
30export declare function resolveUserAgentConfig<T>(input: T & PreviouslyResolved & UserAgentInputConfig): T & UserAgentResolvedConfig;
31export {};