import type { OpenClawConfig } from "../config/types.js"; export declare function encodeHistoryPathSegment(raw: string): string; export declare function decodeHistoryPathSegment(encoded: string): string; export declare function resolveChannelHistoryShardDir(params: { cfg: OpenClawConfig; agentId: string; surface: string; conversationKey: string; ts: string | Date; }): string; export declare function resolveCronHistoryShardDir(params: { cfg: OpenClawConfig; agentId: string; jobId: string; ts: string | Date; }): string; export declare function resolveHistoryShardPath(params: { dir: string; seq: number; padWidth: number; }): string;