import GhostLoggerClass = require('./GhostLogger'); /** * Side-effect free entry point: importing it builds no logger and reads no * `loggingrc`. */ declare const factory: { GhostLogger: typeof GhostLoggerClass; /** * The process-wide (per-thread) logger, or `undefined` if none has been * built or registered yet. Builds nothing. */ getInstance(): GhostLoggerClass | undefined; /** * Make `instance` the process-wide (per-thread) logger returned by * `require('@tryghost/logging')`. Returns the instance. * * Throws if a different instance already exists; calling it again with the * same instance is a no-op. */ setInstance(instance: T): T; }; declare namespace factory { export type GhostLogger = GhostLoggerClass; export type LogLevel = GhostLoggerClass.LogLevel; export type Transport = GhostLoggerClass.Transport; export type RotationOptions = GhostLoggerClass.RotationOptions; export type HttpOptions = GhostLoggerClass.HttpOptions; export type GhostLoggerOptions = GhostLoggerClass.GhostLoggerOptions; } export = factory;