import type { LogRecord } from "./logger.js";
/**
 * JSON log formatter.
 *
 * @example Usage
 * ```ts
 * import { LogRecord } from "@std/log/logger";
 * import { jsonFormatter } from "@std/log/formatters";
 * import { LogLevels } from "@std/log/levels";
 * import { assertEquals } from "@std/assert/equals";
 *
 * const record = new LogRecord({
 *   msg: "Hello, world!",
 *   args: ["foo", "bar"],
 *   level: LogLevels.INFO,
 *   loggerName: "example",
 * });
 * const formatted = jsonFormatter(record);
 *
 * assertEquals(
 *   formatted,
 *   `{"level":"INFO","datetime":${record.datetime.getTime()},"message":"Hello, world!","args":["foo","bar"]}`,
 * );
 * ```
 *
 * @param logRecord Log record to format.
 * @returns JSON string representation of the log record.
 */
export declare function jsonFormatter(logRecord: LogRecord): string;
/** Formatters for log records. */
export declare const formatters: {
    readonly jsonFormatter: typeof jsonFormatter;
};
//# sourceMappingURL=formatters.d.ts.map