import type { SessionScope } from "./types.js";
import { resolveKoiIdFromSessionKey } from "../../routing/session-key.js";
export declare function resolveMainSessionKey(cfg?: {
    session?: {
        scope?: SessionScope;
        mainKey?: string;
    };
    kois?: {
        list?: Array<{
            id?: string;
            default?: boolean;
        }>;
    };
}): string;
export declare function resolveMainSessionKeyFromConfig(): string;
export { resolveKoiIdFromSessionKey };
export declare function resolveKoiMainSessionKey(params: {
    cfg?: {
        session?: {
            mainKey?: string;
        };
    };
    koiId: string;
}): string;
export declare function resolveExplicitKoiSessionKey(params: {
    cfg?: {
        session?: {
            scope?: SessionScope;
            mainKey?: string;
        };
    };
    koiId?: string | null;
}): string | undefined;
export declare function canonicalizeMainSessionAlias(params: {
    cfg?: {
        session?: {
            scope?: SessionScope;
            mainKey?: string;
        };
    };
    koiId: string;
    sessionKey: string;
}): string;
