/** * Shared helpers for pi-discord-remote. */ /** Generate a Discord-safe channel name from cwd + short date + time (HH-MM). */ export declare function makeChannelName(cwd: string): string; /** Split a string into ≤maxLen chunks, preferring newline boundaries. * Preserves fenced code blocks (```) across chunk boundaries by closing * and reopening them. */ export declare function splitMessage(text: string, maxLen?: number): string[]; /** * Build a Discord-friendly label for a tool invocation. */ export declare function toolLabel(toolName: string, args: any): string; export declare function isAbortLikeError(err: unknown): boolean; export declare function sleep(ms: number): Promise; export declare function withTimeout(promise: Promise, ms: number, label: string): Promise; //# sourceMappingURL=helpers.d.ts.map