openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
29 lines (28 loc) • 975 B
TypeScript
import type { OpenClawConfig } from "../config/config.js";
import type { ChannelAccountSnapshot } from "./plugins/types.core.js";
import type { ChannelPlugin } from "./plugins/types.plugin.js";
export declare function buildChannelAccountSnapshot(params: {
plugin: ChannelPlugin;
account: unknown;
cfg: OpenClawConfig;
accountId: string;
enabled: boolean;
configured: boolean;
}): ChannelAccountSnapshot;
export declare function formatChannelAllowFrom(params: {
plugin: ChannelPlugin;
cfg: OpenClawConfig;
accountId?: string | null;
allowFrom: Array<string | number>;
}): string[];
export declare function resolveChannelAccountEnabled(params: {
plugin: ChannelPlugin;
account: unknown;
cfg: OpenClawConfig;
}): boolean;
export declare function resolveChannelAccountConfigured(params: {
plugin: ChannelPlugin;
account: unknown;
cfg: OpenClawConfig;
readAccountConfiguredField?: boolean;
}): Promise<boolean>;