/** * Does this argument list name chat-recall as a channel server? * * Each flag takes a list that runs until the next argument starting with `-`. * The list can also hold `plugin:@` and, when the prompt * follows the flag, the prompt itself: a token only matches on an exact name. */ export declare function listsOurServer(args: readonly string[]): boolean; /** The command line of a process, or null when it is gone or unreadable. */ export declare function commandLineOf(pid: number): string[] | null; /** * The command lines above this process: the parent, then the grandparent. * * Two, for the same reason the message hook watches two: Claude Code may run us * through a shell, and that shell can outlive the Claude process that started * it. Deeper would reach a terminal multiplexer or an editor, whose flags say * nothing about this session. */ export declare function ancestorPids(from?: number, depth?: number): number[]; export declare function ancestorCommandLines(pids?: readonly number[]): string[][]; export interface ChannelDecision { enabled: boolean; /** Why, for CHAT_RECALL_MESSAGE_HOOK_DEBUG and the log. */ reason: string; } /** Whether this session wants channel delivery. */ export declare function channelDecision(env?: NodeJS.ProcessEnv, args?: readonly string[], ancestors?: () => string[][]): ChannelDecision; //# sourceMappingURL=channel-detect.d.ts.map