import { n as MsgContext } from "./templating-DRRqINMA.js";
import { a as SessionEntry, n as GroupKeyResolution, o as SessionScope } from "./types-CGJJ5-ic.js";
import { g as ResolvedSessionMaintenanceConfig } from "./session-key-DiQGn76C.js";
//#region src/config/sessions/group.d.ts
declare function resolveGroupSessionKey(ctx: MsgContext): GroupKeyResolution | null;
//#endregion
//#region src/config/sessions/artifacts.d.ts
declare function isSessionArchiveArtifactName(fileName: string): boolean;
declare function isUsageCountedSessionTranscriptFileName(fileName: string): boolean;
declare function parseUsageCountedSessionIdFromFileName(fileName: string): string | null;
//#endregion
//#region src/config/sessions/main-session.d.ts
declare function canonicalizeMainSessionAlias(params: {
  cfg?: {
    session?: {
      scope?: SessionScope;
      mainKey?: string;
    };
  };
  agentId: string;
  sessionKey: string;
}): string;
//#endregion
//#region src/config/sessions/transcript.d.ts
type AssistantTranscriptText = {
  id?: string;
  text: string;
  timestamp?: number;
};
type LatestAssistantTranscriptText = AssistantTranscriptText;
declare function readLatestAssistantTextFromSessionTranscript(sessionFile: string | undefined): Promise<LatestAssistantTranscriptText | undefined>;
//#endregion
//#region src/config/sessions/session-file.d.ts
declare function resolveAndPersistSessionFile(params: {
  sessionId: string;
  sessionKey: string;
  sessionStore: Record<string, SessionEntry>;
  storePath: string;
  sessionEntry?: SessionEntry;
  agentId?: string;
  sessionsDir?: string;
  fallbackSessionFile?: string;
  activeSessionKey?: string;
  maintenanceConfig?: ResolvedSessionMaintenanceConfig;
}): Promise<{
  sessionFile: string;
  sessionEntry: SessionEntry;
}>;
//#endregion
export { isUsageCountedSessionTranscriptFileName as a, isSessionArchiveArtifactName as i, readLatestAssistantTextFromSessionTranscript as n, parseUsageCountedSessionIdFromFileName as o, canonicalizeMainSessionAlias as r, resolveGroupSessionKey as s, resolveAndPersistSessionFile as t };