@riddance/service
Version:
22 lines (21 loc) • 730 B
TypeScript
import { LogEntry } from '@riddance/host/context';
import { Environment, Json } from '../context.js';
export declare function getLoggedEntries(): LogEntry[];
export declare function clearLoggedEntries(): void;
export declare function getEmitted(): {
topic: string;
type: string;
subject: string;
data?: Json;
messageId?: string;
}[];
export declare function clearEmitted(): void;
export declare function allowErrorLogs(): {
[Symbol.dispose]: () => void;
};
export declare function timeShift(seconds: number): void;
export declare function timeShiftTo(when: Date): void;
export declare function getEnvironment(): {
[x: string]: string;
};
export declare function setEnvironment(env: Environment): void;