1 | import { BindingAddress, BindingKey } from './binding-key';
|
2 | import { Context } from './context';
|
3 | import { ResolutionOptions } from './resolution-session';
|
4 | import { ValueOrPromise } from './value-promise';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export interface ConfigurationResolver {
|
14 | |
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | getConfigAsValueOrPromise<ConfigValueType>(key: BindingAddress<unknown>, propertyPath?: string, resolutionOptions?: ResolutionOptions): ValueOrPromise<ConfigValueType | undefined>;
|
26 | }
|
27 |
|
28 |
|
29 |
|
30 | export declare class DefaultConfigurationResolver implements ConfigurationResolver {
|
31 | readonly context: Context;
|
32 | constructor(context: Context);
|
33 | getConfigAsValueOrPromise<ConfigValueType>(key: BindingAddress<unknown>, propertyPath?: string, resolutionOptions?: ResolutionOptions): ValueOrPromise<ConfigValueType | undefined>;
|
34 | }
|
35 | /**
|
36 | * Create binding key for configuration of the binding
|
37 | * @param key - Binding key for the target binding
|
38 | * @param propertyPath - Property path for the configuration
|
39 | */
|
40 | export declare function configBindingKeyFor<ConfigValueType = unknown>(key: BindingAddress, propertyPath?: string): BindingKey<ConfigValueType>;
|