import type { SKYKOIConfig } from "../../config/config.js";
import type { TemplateContext } from "../templating.js";
import type { VerboseLevel } from "../thinking.js";
import type { GetReplyOptions } from "../types.js";
import type { FollowupRun } from "./queue.js";
import { type SessionEntry } from "../../config/sessions.js";
export declare function runMemoryFlushIfNeeded(params: {
    cfg: SKYKOIConfig;
    followupRun: FollowupRun;
    sessionCtx: TemplateContext;
    opts?: GetReplyOptions;
    defaultModel: string;
    koiCfgContextTokens?: number;
    resolvedVerboseLevel: VerboseLevel;
    sessionEntry?: SessionEntry;
    sessionStore?: Record<string, SessionEntry>;
    sessionKey?: string;
    storePath?: string;
    isHeartbeat: boolean;
}): Promise<SessionEntry | undefined>;
