import type { ChannelDirectoryEntry, ChannelDirectoryEntryKind, ChannelId } from "../../channels/plugins/types.public.js"; import type { OpenClawConfig } from "../../config/types.openclaw.js"; import { type RuntimeEnv } from "../../runtime.js"; export type TargetResolveKind = ChannelDirectoryEntryKind | "channel"; export type ResolveAmbiguousMode = "error" | "best" | "first"; export type ResolvedMessagingTarget = { to: string; kind: TargetResolveKind; display?: string; source: "normalized" | "directory"; }; export type ResolveMessagingTargetResult = { ok: true; target: ResolvedMessagingTarget; } | { ok: false; error: Error; candidates?: ChannelDirectoryEntry[]; }; export { maybeResolveIdLikeTarget } from "./target-id-resolution.js"; export declare function resolveChannelTarget(params: { cfg: OpenClawConfig; channel: ChannelId; input: string; accountId?: string | null; preferredKind?: TargetResolveKind; runtime?: RuntimeEnv; }): Promise; export declare function resetDirectoryCache(params?: { channel?: ChannelId; accountId?: string | null; }): void; export declare function formatTargetDisplay(params: { channel: ChannelId; target: string; display?: string; kind?: ChannelDirectoryEntryKind; }): string; export declare function resolveMessagingTarget(params: { cfg: OpenClawConfig; channel: ChannelId; input: string; accountId?: string | null; preferredKind?: TargetResolveKind; runtime?: RuntimeEnv; resolveAmbiguous?: ResolveAmbiguousMode; }): Promise; export declare function lookupDirectoryDisplay(params: { cfg: OpenClawConfig; channel: ChannelId; targetId: string; accountId?: string | null; runtime?: RuntimeEnv; }): Promise;