import { LoggerContext, StringTemplate } from './types'; /** * Resolves the contextual namespace. * The namespace is created if it's not initialized. * * @returns resolved namespace */ export declare const resolveLoggerNamespace: () => import("cls-hooked").Namespace>; /** * Creates a new context and executes the callback * function passed by args * @param fn function to be executed */ export declare const inNewLoggerContext: (fn: (...args: any[]) => void) => void; /** * Creates a new context and executes the callback async * function passed by args * @param fn async function to be executed * @returns the context created */ export declare const inNewLoggerContextAsync: (fn: (...args: any[]) => Promise) => Promise; /** * Gets a key value stored in the context * * @returns key value */ export declare const getFromContext: (key: string) => unknown; /** * Sets a new key in the context or * updates its value if it exists already. * * @returns key value */ export declare const setToContext: (key: string, value: string) => void; /** * Gets context object from namespace * * @returns context */ export declare const getContext: () => LoggerContext; /** * Sets context object in namespace * * @returns context */ export declare const setContext: (context: LoggerContext) => void; /** * Gets the list of prefix templates added * to the namespace * * @returns prefix templates */ export declare const getPrefixTemplates: () => StringTemplate[]; /** * Adds a prefix template to the namespace * * @returns */ export declare const addPrefixTemplate: (template: StringTemplate) => void;