import type { GenericFunction } from "./logger.js";
import "./setup.js";
export type { GenericFunction };
/**
 * Log at the warning level.
 *
 * This function is a pass-through to the default logger's `warn` method. By
 * default, the default logger is configured to use {@linkcode console.log} and
 * print in yellow text.
 *
 * @template T The type of the message to log.
 * @param msg The message to log.
 * @param args Arguments to be formatted into the message.
 * @returns The message that was logged.
 *
 * @example Usage
 * ```ts
 * import { warn } from "@std/log/warn";
 * import { assertEquals } from "@std/assert/equals";
 *
 * assertEquals(warn("This is a warning message."), "This is a warning message.");
 * // Prints: "WARN This is a warning message."
 *
 * assertEquals(warn(() => "This is a warning message."), "This is a warning message.");
 * // Prints: "WARN This is a warning message."
 * ```
 */
export declare function warn<T>(msg: () => T, ...args: unknown[]): T | undefined;
/**
 * Log at the warning level.
 *
 * This function is a pass-through to the default logger's `warn` method. By
 * default, the default logger is configured to use {@linkcode console.log}.
 *
 * @template T The type of the message to log.
 * @param msg The message to log.
 * @param args Arguments to be formatted into the message.
 * @returns The message that was logged.
 *
 * @example Usage
 * ```ts
 * import { warn } from "@std/log/warn";
 * import { assertEquals } from "@std/assert/equals";
 *
 * assertEquals(warn("This is a warning message."), "This is a warning message.");
 * // Prints: "WARN This is a warning message."
 *
 * assertEquals(warn(() => "This is a warning message."), "This is a warning message.");
 * // Prints: "WARN This is a warning message."
 * ```
 */
export declare function warn<T>(msg: T extends GenericFunction ? never : T, ...args: unknown[]): T;
//# sourceMappingURL=warn.d.ts.map