/**
 * Status Builders — shared conversion functions for ProviderState → ManagedEntry
 *
 * Used by:
 *   - daemon-standalone (StandaloneServer.getStatus)
 *   - DaemonStatusReporter
 *
 * Consolidates ProviderState→ManagedEntry mapping logic.
 */
import type { DaemonCdpManager } from '../cdp/manager.js';
import type { SessionEntry } from '../shared-types.js';
import type { ProviderState } from '../providers/provider-instance.js';
export type SessionEntryProfile = 'full' | 'live' | 'metadata';
export interface SessionEntryBuildOptions {
    profile?: SessionEntryProfile;
}
/**
 * Find a CDP manager by key. Supports single-window (`cursor`) and full multi-window keys (`cursor_<targetId>`).
 *
 * Lookup order:
 *   1. Exact match when connected
 *   2. If key has no multi-window suffix: at most **one** connected manager whose key starts with `key_`
 *   3. If two or more windows share that prefix → **null** (ambiguous — pass full managerKey from `GET /api/cdp/targets`)
 */
export declare function findCdpManager(cdpManagers: Map<string, DaemonCdpManager>, key: string): DaemonCdpManager | null;
/**
 * Check if any CDP manager matches the given key (exact or prefix).
 */
export declare function hasCdpManager(cdpManagers: Map<string, DaemonCdpManager>, key: string): boolean;
/**
 * Check if any CDP manager matching the key is connected.
 */
export declare function isCdpConnected(cdpManagers: Map<string, DaemonCdpManager>, key: string): boolean;
export declare function buildSessionEntries(allStates: ProviderState[], cdpManagers: Map<string, DaemonCdpManager>, options?: SessionEntryBuildOptions): SessionEntry[];
