/** * Slack target & identifier normalization supporting workspace and Enterprise Grid forms: * - `channel:C...` / `group:C...` (legacy xopc compat) / raw `C...` / `G...` * - `user:U...` / `user:W...` / `user:D...` (legacy xopc DM channel compat) / `<@U...>` * - `team:T...:channel:C...` / `team:T...:user:U...` */ export declare const SLACK_ID_RE: RegExp; export declare const SLACK_USER_ID_RE: RegExp; export declare const SLACK_CHANNEL_ID_RE: RegExp; export declare const SLACK_TEAM_ID_RE: RegExp; export declare const SLACK_TS_RE: RegExp; export type SlackTargetKind = 'channel' | 'user'; export interface ParsedSlackTarget { kind: SlackTargetKind; id: string; teamId?: string; /** True when ID is a Slack DM channel (`D...`) rather than a user ID (`U...`/`W...`). */ isDmChannelId: boolean; /** Canonical xopc/OpenClaw-compatible normalized string. */ normalized: string; } export declare function isValidSlackId(value: string | undefined | null): value is string; export declare function isValidSlackTs(value: string | undefined | null): value is string; export declare function parseSlackTarget(raw: string | undefined | null, options?: { defaultKind?: SlackTargetKind; }): ParsedSlackTarget | null; /** * Format xopc `chat_id` for inbound messages, preserving backwards compatibility: * - Single-workspace DM: `user:` * - Single-workspace channel/group/mpim: `group:` * - Enterprise Grid org-wide install: `team::user:` / `team::channel:` */ export declare function formatSlackInboundChatId(params: { channelId: string; isDirect: boolean; teamId?: string; isEnterpriseInstall?: boolean; }): string; export declare function normalizeSlackAllowEntry(raw: string): { raw: string; wildcard: boolean; teamId?: string; id?: string; name?: string; }; export declare function formatSlackChannelPolicyKey(params: { channelId: string; teamId?: string; isEnterpriseInstall?: boolean; }): string; export declare function parseSlackTimestampBound(input: string | undefined): string | undefined;