/** * 三端唯一来源:流式通道、消息与文件统计类型。 */ export const CH = { start: "stream:start", cancel: "stream:cancel", slow: "demo:slow", large: "file:large", whole: "file:whole", reset: "file:reset", portChannel: "stream:port", }; export function isStreamOptions(value) { if (typeof value !== "object" || value === null) return false; const record = value; return (Number.isInteger(record.chunks) && record.chunks >= 1 && record.chunks <= 500 && Number.isInteger(record.sizeKB) && record.sizeKB >= 1 && record.sizeKB <= 1024 && Number.isInteger(record.delayMs) && record.delayMs >= 0 && record.delayMs <= 1000); } export function isStreamAck(value) { if (typeof value !== "object" || value === null) return false; const record = value; return record.type === "ack" && Number.isInteger(record.seq); } //# sourceMappingURL=ipc.js.map