nostr-websocket-utils
Version:
Robust WebSocket utilities for Nostr applications with automatic reconnection, supporting both ESM and CommonJS. Features channel-based messaging, heartbeat monitoring, message queueing, and comprehensive error handling with type-safe handlers.
42 lines • 1.52 kB
TypeScript
import type { Logger, ChildLoggerOptions, Bindings } from 'pino';
export declare class MockPinoLogger implements Partial<Logger> {
level: string;
levelVal: number;
version: string;
LOG_VERSION: number;
useLevelLabels: boolean;
useOnlyCustomLevels: boolean;
customLevels: {};
debug: import("vitest").Mock<import("@vitest/spy").Procedure>;
info: import("vitest").Mock<import("@vitest/spy").Procedure>;
warn: import("vitest").Mock<import("@vitest/spy").Procedure>;
error: import("vitest").Mock<import("@vitest/spy").Procedure>;
fatal: import("vitest").Mock<import("@vitest/spy").Procedure>;
trace: import("vitest").Mock<import("@vitest/spy").Procedure>;
silent: import("vitest").Mock<import("@vitest/spy").Procedure>;
levels: {
values: {
fatal: number;
error: number;
warn: number;
info: number;
debug: number;
trace: number;
};
labels: {
10: string;
20: string;
30: string;
40: string;
50: string;
60: string;
};
};
bindings: () => {};
flush: () => Promise<void>;
isLevelEnabled: () => boolean;
child<ChildCustomLevels extends string = never>(_bindings: Bindings, _options?: ChildLoggerOptions<ChildCustomLevels>): Logger<ChildCustomLevels>;
static create(): Logger;
}
export declare const createMockLogger: () => Logger;
//# sourceMappingURL=mockLogger.d.ts.map