import type { ConfigurationValue, IDataSource, IEnvAwareBuilder, IEnvironment, InflateDictionary, InflateKey, MergeResult, Predicate, ProcessFetchResponse, Traits, UrlBuilderSectionWithCheck } from "../wj-config.js"; import { BuilderImpl } from "./BuilderImpl.js"; export interface IEnvironmentSource { name?: string; environment: IEnvironment; } export declare class EnvAwareBuilder = {}> implements IEnvAwareBuilder { #private; /** * Environment source. */ private _envSource; constructor(envSource: IEnvironmentSource, impl: BuilderImpl); add>(dataSource: IDataSource): IEnvAwareBuilder>; addObject>(obj: NewT | (() => Promise)): IEnvAwareBuilder>; addDictionary, TSep extends string = ':'>(dictionary: Record | (() => Promise>), hierarchySeparator?: string, prefixOrPredicate?: string | Predicate): IEnvAwareBuilder>>; addEnvironment, TPrefix extends string = 'OPT_'>(env: Record | (() => Promise>), prefix?: string): IEnvAwareBuilder>>; addFetched>(input: URL | RequestInfo | (() => Promise), required?: boolean, init?: RequestInit, procesFn?: ProcessFetchResponse): IEnvAwareBuilder>; addJson>(json: string | (() => Promise), jsonParser?: JSON, reviver?: (this: any, key: string, value: any) => any): IEnvAwareBuilder>; addSingleValue(path: TKey | (() => Promise<[TKey, TValue]>), valueOrHierarchySeparator?: TValue | TSep, hierarchySeparator?: TSep): IEnvAwareBuilder>>; postMerge = T>(fn: (config: T) => U | Promise): IEnvAwareBuilder; name(name: string): this; createUrlFunctions(wsPropertyNames: TUrl | TUrl[], routeValuesRegExp?: RegExp): IEnvAwareBuilder & UrlBuilderSectionWithCheck>; /** * Boolean flag used to raise an error if there was no call to includeEnvironment() when it is known to be needed. */ private _envIsRequired; /** * Dictionary of environment names that have been configured with a data source using the addPerEnvironment() * helper function. The value is the number of times the environment name has been used. */ private _perEnvDsCount; addPerEnvironment>(addDs: (builder: IEnvAwareBuilder, envName: TEnvironments) => boolean | string): IEnvAwareBuilder>; when(predicate: Predicate | undefined>, dataSourceName?: string): this; forEnvironment(envName: Exclude, dataSourceName?: string): this; whenAllTraits(traits: Traits, dataSourceName?: string): this; whenAnyTrait(traits: Traits, dataSourceName?: string): this; build(traceValueSources?: boolean, enforcePerEnvironmentCoverage?: boolean): Promise; } //# sourceMappingURL=EnvAwareBuilder.d.ts.map