@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
19 lines (18 loc) • 575 B
TypeScript
import type { ChannelId } from "../channels/plugins/types.js";
export type ChannelDirection = "inbound" | "outbound";
type ActivityEntry = {
inboundAt: number | null;
outboundAt: number | null;
};
export declare function recordChannelActivity(params: {
channel: ChannelId;
accountId?: string | null;
direction: ChannelDirection;
at?: number;
}): void;
export declare function getChannelActivity(params: {
channel: ChannelId;
accountId?: string | null;
}): ActivityEntry;
export declare function resetChannelActivityForTest(): void;
export {};