export interface MemorySession {
    mcpUrl: string;
    org?: string;
    tokenType?: string;
    updatedAt?: string;
}
export declare function normalizeMcpUrl(input: string): string;
/** Strip org suffix from an MCP URL for server-level defaults: /mcp/acme → /mcp */
export declare function baseMcpUrl(input: string): string;
/** Build an org-scoped MCP URL: `https://host/mcp/{org}` */
export declare function mcpUrlForOrg(baseUrl: string, org: string): string;
/** Extract org slug from a /mcp/{org} URL, or null if bare /mcp */
export declare function orgFromMcpUrl(mcpUrl: string): string | null;
export declare function setActiveOrg(orgSlug: string, context?: string): Promise<void>;
export declare function setActiveMcpUrl(mcpUrl: string, context?: string): Promise<void>;
export declare function getActiveSession(context?: string): Promise<{
    session: MemorySession | null;
    key: string | null;
}>;
export declare function getSessionForOrg(orgSlug: string, context?: string, urlFlag?: string): Promise<{
    session: MemorySession;
    key: string;
} | null>;
/**
 * Resolve which server URL to use.
 * Priority: explicit url arg > LOBU_MEMORY_URL > context preference > cloud default.
 */
export declare function resolveServerUrl(urlFlag?: string, context?: string): Promise<string>;
/**
 * Resolve which org to use.
 * Priority: explicit org arg > LOBU_MEMORY_ORG > session > context preference.
 */
export declare function resolveOrg(orgFlag?: string, session?: MemorySession | null, context?: string): Promise<string | undefined>;
/**
 * Resolve a usable bearer token from top-level `lobu login` credentials.
 */
export declare function getUsableToken(mcpUrl?: string, contextName?: string): Promise<{
    token: string;
    session: MemorySession;
    contextName: string;
} | null>;
//# sourceMappingURL=openclaw-auth.d.ts.map