import type { LogLevel } from "@homarr/log/constants"; import { createListChannel, createQueueChannel, createSubPubChannel } from "./lib/channel"; export { createCacheChannel, createItemAndIntegrationChannel, createItemChannel, createIntegrationOptionsChannel, createWidgetOptionsChannel, createChannelWithLatestAndEvents, createChannelEventHistory, handshakeAsync, createSubPubChannel, createGetSetChannel, } from "./lib/channel"; export { createIntegrationHistoryChannel } from "./lib/channels/history-channel"; export const exampleChannel = createSubPubChannel<{ message: string }>("example"); export const pingChannel = createSubPubChannel< { url: string; statusCode: number; durationMs: number } | { url: string; error: string } >("ping"); export const pingUrlChannel = createListChannel("ping-url"); export const homeAssistantEntityState = createSubPubChannel<{ entityId: string; state: string; }>("home-assistant/entity-state"); export const queueChannel = createQueueChannel<{ name: string; executionDate: Date; data: unknown; }>("common-queue"); export interface LoggerMessage { message: string; level: LogLevel; } export const loggingChannel = createSubPubChannel("logging");