/** Vitest-only: clears per-run reasoning text cache used for incremental `delta` rewriting. */
export declare function resetThinkingStreamAccumStateForTest(): void;
/** Vitest-only */
export declare function resetOpenClawRunDeviceMappingForTest(): void;
/** Parse deviceId from a Friday Next channel sessionKey (friday-{deviceId} or legacy agent:main:friday-*). */
export declare function deviceIdFromSessionKey(sessionKey: string): string | null;
export declare function registerFridaySessionDeviceMapping(rawSessionKey: string, deviceId: string): void;
/** In-process fallback for tool hooks / telemetry (same idea as outbound sole-device). */
export declare function getLastRegisteredFridayDeviceId(): string | undefined;
/** Resolve device for gateway `sessionKey` (friday-style or last POST mapping). */
export declare function resolveFridayDeviceIdForSessionKey(sessionKey: string): string | null;
/** Tool hooks / core may pass gateway store keys; resolve app's POST sessionKey. */
export declare function resolveFridayHistorySessionKey(gatewaySessionKey: string): string | undefined;
/** Resolve latest known app sessionKey by deviceId (from last POST). */
export declare function latestHistorySessionKeyForDeviceId(deviceId: string): string | undefined;
/**
 * Session key hint for outbound delivery when ctx has no `sessionKey` (typical cron).
 * Uses in-process mapping only (no plugin-side history files).
 */
export declare function resolveHistorySessionKeyForFridayDevice(deviceId: string): string | undefined;
type ForwardAgentEventArgs = {
    runId: string;
    seq?: number;
    ts?: number;
    stream: string;
    data: Record<string, unknown>;
    sessionKey?: string;
};
/**
 * Resolve the real device UUID for Friday outbound (`sendText` / `sendMedia`).
 */
export declare function resolveFridayDeviceIdForOutbound(to: string | undefined, rawCtx?: Record<string, unknown>): string;
/**
 * Forward global OpenClaw agent events to the Friday SSE connection (transparent).
 *
 * Asynchronous follow-up runs still reach the device via `getLastRunIdForDevice` when the parent run
 * is no longer tracked.
 */
export declare function forwardAgentEventRaw(evt: ForwardAgentEventArgs): void;
export {};
