import type { PailServerType } from "./pail.d.ts"; import type { ServerConstructorOptions } from "./types.d.ts"; /** * Creates a new Pail logger instance configured for server environments. * * This factory function creates a server-compatible logger with default processors * and reporters suitable for Node.js environments. It automatically configures * log levels based on environment variables and sets up pretty printing. * @template T - Custom logger types * @template L - Log level types * @param options Configuration options for the logger * @returns A new PailServer instance * @example * ```typescript * import { createPail } from "@visulima/pail"; * * const logger = createPail({ * logLevel: "debug", * types: { * http: { * color: "blue", * label: "HTTP", * logLevel: "info" * } * } * }); * * logger.info("Server started on port 3000"); * logger.http("GET /api/users 200"); * ``` * @example * ```bash * # Control log level via environment variable * PAIL_LOG_LEVEL=debug node app.js * ``` */ export declare const createPail: (options?: ServerConstructorOptions) => PailServerType; /** * Default Pail logger instance for server environments. * * A pre-configured logger instance ready for immediate use in Node.js environments. * Uses default configuration with pretty reporter, message formatter processor, * and automatic log level detection based on environment variables. * @example * ```typescript * import { pail } from "@visulima/pail"; * * pail.info("Server listening on port 3000"); * pail.error("Database connection failed", error); * pail.success("Migration completed successfully"); * ``` * @example * ```bash * # Set log level via environment * NODE_ENV=production node app.js * PAIL_LOG_LEVEL=debug node app.js * ``` */ export declare const pail: PailServerType; export type { PailServerType as Pail } from "./pail.d.ts"; export type { MultiBarOptions, ProgressBarOptions, ProgressBarPayload, ProgressBarStyle, SingleBarOptions } from "./progress-bar.d.ts"; export { getBarChar, MultiProgressBar, ProgressBar } from "./progress-bar.d.ts"; export type { SpinnerIcons, SpinnerOptions, SpinnerStartOptions, SpinnerStyle } from "./spinner.d.ts"; export { MultiSpinner, Spinner } from "./spinner.d.ts"; export type { ConstructorOptions, DefaultLoggerTypes, DefaultLogTypes, ExtendedRfc5424LogLevels, LoggerConfiguration, LoggerFunction, LoggerTypesAwareReporter, LoggerTypesConfig, Processor, Reporter, StreamAwareReporter, } from "./types.d.ts";