import convict from 'convict'; import { OnConfigLoadedHook, OnSchemaAssembledHook } from './hook'; import { FileKeyDerivationStrategy, EnvKeyDerivationStrategy } from './key-derivation'; export interface LibraryConfiguration { convict: convict; sources: string[]; fileKeyDerivationStrategy: FileKeyDerivationStrategy; envKeyDerivationStrategy: EnvKeyDerivationStrategy; onSchemaAssembledHook: OnSchemaAssembledHook; onConfigLoadedHook: OnConfigLoadedHook; } export declare const libraryConfiguration: LibraryConfiguration; export declare class KonvenientConfigurator { /** * Gets the convict instance used by Konvenient. * @returns the used convict instance */ convict(): convict; /** * Sets the convict instance to be used by Konvenient. * @param value the convict instance to be used * @returns the configurator */ withConvict(value: convict): this; sources(): string[]; withSources(value: string[]): this; withFileKeyDerivationStrategy(value: FileKeyDerivationStrategy): this; fileKeyDerivationStrategy(): FileKeyDerivationStrategy; withEnvKeyDerivationStrategy(value: EnvKeyDerivationStrategy): this; envKeyDerivationStrategy(): EnvKeyDerivationStrategy; /** * Gets the `onSchemaAssembledHook` used by Konvenient. * @returns the used hook */ onSchemaAssembledHook(): OnSchemaAssembledHook; /** * Sets the `onSchemaAssembledHook` to be used by Konvenient. * @param value the hook to be used * @returns the configurator */ withOnSchemaAssembledHook(value: OnSchemaAssembledHook): this; /** * Gets the `onConfigLoadedHook` used by Konvenient. * @returns the used hook */ onConfigLoadedHook(): OnConfigLoadedHook; /** * Sets the `onConfigLoadedHook` to be used by Konvenient. * @param value the hook to be used * @returns the configurator */ withOnConfigLoadedHook(value: OnConfigLoadedHook): this; } /** * Configuration object used to set library level options * of Konvenient. */ export declare const configurator: KonvenientConfigurator;