1 | import { ConfigSource as BaseConfigSource } from '@erect/config';
|
2 | export { BaseConfigSource };
|
3 | export interface CortexQLConfigSource {
|
4 | |
5 |
|
6 |
|
7 | listenAddress: string;
|
8 | |
9 |
|
10 |
|
11 | listenPort: number;
|
12 | |
13 |
|
14 |
|
15 | host: string;
|
16 | |
17 |
|
18 |
|
19 | disableSubscription: boolean;
|
20 | }
|
21 | export interface ConfigSource extends BaseConfigSource, CortexQLConfigSource {
|
22 | }
|
23 | export declare const extendConfig: <T extends ConfigSource>() => {
|
24 | config: ((path: string | number | symbol | PropertyKey[], defaultValue?: any) => any) & T;
|
25 | loadConfig: (values: T) => void;
|
26 | };
|
27 | export declare const config: ((path: string | number | symbol | PropertyKey[], defaultValue?: any) => any) & ConfigSource, loadConfig: (values: ConfigSource) => void;
|
28 | export default config;
|