import { getChatChannelMeta, isChatChannelId } from "./registry.js";
//#region src/channels/dock.ts
function getChannelDock(channelId) {
	if (!isChatChannelId(channelId)) return;
	const meta = getChatChannelMeta(channelId);
	return {
		id: meta.id,
		label: meta.label,
		description: meta.description,
		capabilities: meta.capabilities,
		...meta.dock?.outbound && { outbound: meta.dock.outbound },
		...meta.dock?.queue && { queue: meta.dock.queue }
	};
}
function getDockForBuiltinChannel(id) {
	return getChannelDock(id);
}
//#endregion
export { getChannelDock, getDockForBuiltinChannel };

//# sourceMappingURL=dock.js.map