import type { AgentMessage as KoiMessage } from "@mariozechner/pi-agent-core";
import type { SKYKOIConfig } from "../../config/config.js";
/**
 * Limits conversation history to the last N user turns (and their associated
 * assistant responses). This reduces token usage for long-running DM sessions.
 */
export declare function limitHistoryTurns(messages: KoiMessage[], limit: number | undefined): KoiMessage[];
/**
 * Extract provider + user ID from a session key and look up dmHistoryLimit.
 * Supports per-DM overrides and provider defaults.
 */
export declare function getDmHistoryLimitFromSessionKey(sessionKey: string | undefined, config: SKYKOIConfig | undefined): number | undefined;
