/**
 * OpenClaw-aligned agent session keys: `agent:{agentId}:{rest}`
 */
export { getSubagentDepth, isAcpSessionKey, isCronSessionKey, isSubagentSessionKey, parseAgentSessionKey, parseThreadSessionSuffix, type ParsedAgentSessionKey, } from './session-key-utils.js';
export { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId, } from './account-id.js';
export declare const DEFAULT_AGENT_ID = "main";
export declare const DEFAULT_MAIN_KEY = "main";
export type SessionKeyShape = 'missing' | 'agent' | 'legacy_or_alias' | 'malformed_agent';
export type PeerKind = 'direct' | 'group' | 'channel' | 'dm';
export declare function normalizeMainKey(value: string | undefined | null): string;
export declare function toAgentRequestSessionKey(storeKey: string | undefined | null): string | undefined;
export declare function toAgentStoreSessionKey(params: {
    agentId: string;
    requestKey: string | undefined | null;
    mainKey?: string | undefined;
}): string;
export declare function resolveAgentIdFromSessionKey(sessionKey: string | undefined | null): string;
export declare function classifySessionKeyShape(sessionKey: string | undefined | null): SessionKeyShape;
export declare function normalizeAgentId(value: string | undefined | null): string;
export declare function isValidAgentId(value: string | undefined | null): boolean;
export declare function sanitizeAgentId(value: string | undefined | null): string;
export declare function buildAgentMainSessionKey(params: {
    agentId: string;
    mainKey?: string | undefined;
}): string;
export declare function buildAgentPeerSessionKey(params: {
    agentId: string;
    mainKey?: string | undefined;
    channel: string;
    accountId?: string | null;
    peerKind?: PeerKind | null;
    peerId?: string | null;
    identityLinks?: Record<string, string[]>;
    dmScope?: 'main' | 'per-peer' | 'per-channel-peer' | 'per-account-channel-peer';
}): string;
export declare function buildGroupHistoryKey(params: {
    channel: string;
    accountId?: string | null;
    peerKind: 'group' | 'channel';
    peerId: string;
}): string;
export declare function resolveThreadSessionKeys(params: {
    baseSessionKey: string;
    threadId?: string | null;
    parentSessionKey?: string;
    useSuffix?: boolean;
    normalizeThreadId?: (threadId: string) => string;
}): {
    sessionKey: string;
    parentSessionKey?: string;
};
export declare function scopedHeartbeatWakeOptions<T extends object>(sessionKey: string, wakeOptions: T): T | (T & {
    sessionKey: string;
});
/** Default CLI/TUI main session key. */
export declare function defaultMainSessionKey(agentId?: string, mainKey?: string): string;
export declare function assertAgentSessionKey(sessionKey: string): void;
export declare function normalizeSessionKey(sessionKey: string | undefined | null): string;
