import { LogAttributes } from "../../runtime/logger.mjs"; //#region src/vitest/mocks/logger.d.ts type LogSeverity = "debug" | "info" | "warn" | "error"; /** A recorded `debug`/`info`/`warn`/`error` call. */ interface LogCall { severity: LogSeverity; message: string; attributes?: LogAttributes; } /** Initial fixtures for a logger mock. */ export interface MockLoggerOptions {} /** * Acquire a disposable mock for `tailor.logger`. Each method is a `vi.fn`, so * calls can be asserted directly; `calls` returns the `debug`/`info`/`warn`/ * `error` entries in the order they were emitted. Restored on dispose. * @param _options - Reserved for future initial fixtures * @returns Disposable logger mock control object * @example * ```typescript * import { mockLogger } from "@tailor-platform/sdk/vitest"; * * test("logs the processed order", () => { * using logger = mockLogger(); * // …run code that calls tailor.logger.info… * expect(logger.info).toHaveBeenCalledWith("order processed", { orderId: "o-1" }); * }); * ``` */ export declare function mockLogger(_options?: MockLoggerOptions): { /** The `debug` `vi.fn`. */ debug: import("vitest").Mock<(_message: string, _attributes?: LogAttributes) => void>; /** The `info` `vi.fn`. */ info: import("vitest").Mock<(_message: string, _attributes?: LogAttributes) => void>; /** The `warn` `vi.fn`. */ warn: import("vitest").Mock<(_message: string, _attributes?: LogAttributes) => void>; /** The `error` `vi.fn`. */ error: import("vitest").Mock<(_message: string, _attributes?: LogAttributes) => void>; /** The `setAttributes` `vi.fn`. */ setAttributes: import("vitest").Mock<(_attributes: LogAttributes) => void>; readonly calls: LogCall[]; clear(): void; reset(): void; } & Disposable; //#endregion