import type { SessionEntry } from "../../../config/sessions/types.js";
import type { DaoCoreConfig } from "../../../config/types.daocore.js";
type SessionRouteRepairResult = {
    changed: boolean;
    sessionKeys: string[];
};
type CodexSessionRouteRepairSummary = {
    scannedStores: number;
    repairedStores: number;
    repairedSessions: number;
    warnings: string[];
    changes: string[];
};
export declare function collectCodexRouteWarnings(params: {
    cfg: DaoCoreConfig;
    env?: NodeJS.ProcessEnv;
}): string[];
export declare function maybeRepairCodexRoutes(params: {
    cfg: DaoCoreConfig;
    env?: NodeJS.ProcessEnv;
    shouldRepair: boolean;
    codexRuntimeReady?: boolean;
}): {
    cfg: DaoCoreConfig;
    warnings: string[];
    changes: string[];
};
export declare function repairCodexSessionStoreRoutes(params: {
    store: Record<string, SessionEntry>;
    now?: number;
}): SessionRouteRepairResult;
export declare function maybeRepairCodexSessionRoutes(params: {
    cfg: DaoCoreConfig;
    env?: NodeJS.ProcessEnv;
    shouldRepair: boolean;
    codexRuntimeReady?: boolean;
}): Promise<CodexSessionRouteRepairSummary>;
export {};
