forked from lidofinance/csm-widget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.d.ts
61 lines (51 loc) · 1.63 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
interface Window {
// see _document.js for definition
_paq: undefined | [string, ...unknown[]][];
}
declare module '*.svg' {
/**
* Use `any` to avoid conflicts with
* `@svgr/webpack` plugin or
* `babel-plugin-inline-react-svg` plugin.
*/
const content: any;
export const ReactComponent: React.FunctionComponent<
React.ComponentProps<'svg'>
>;
export default content;
}
declare module 'next/config' {
type ConfigTypes = () => {
// some properties may be confusing, but that's okay - "serverRuntimeConfig" accepts "process.env" without modification and/or validation.
// see: config/get-secret-config.ts
serverRuntimeConfig: {
basePath: string | undefined;
developmentMode: boolean;
maintenance: boolean;
defaultChain: string;
rpcUrls_1: string | undefined;
rpcUrls_17000: string | undefined;
ethplorerApiKey: string | undefined;
clApiUrls_1: string | undefined;
clApiUrls_17000: string | undefined;
oneInchApiKey: string | undefined;
cspTrustedHosts: string | undefined;
cspReportUri: string | undefined;
cspReportOnly: string | undefined;
subgraphMainnet: string | undefined;
subgraphGoerli: string | undefined;
subgraphHolesky: string | undefined;
subgraphRequestTimeout: string | undefined;
rateLimit: string;
rateLimitTimeFrame: string;
ethAPIBasePath: string;
rewardsBackendAPI: string | undefined;
};
publicRuntimeConfig: {
basePath: string | undefined;
developmentMode: boolean;
};
};
declare const getConfig: ConfigTypes;
export default getConfig;
}