/**
 * Cloud Initializer
 *
 * Handles automatic Cloud connection restoration on application startup.
 * Reads persisted credentials from ~/.crewly/cloud/config.json and
 * calls CloudClientService.connectLocal() to restore the connection.
 *
 * Non-blocking: failures are logged but do not prevent startup.
 *
 * @module services/cloud/cloud-initializer
 */
/**
 * Result of the cloud initialization attempt.
 */
export interface CloudInitResult {
    /** Whether initialization was attempted (config file exists) */
    attempted: boolean;
    /** Whether initialization succeeded */
    success: boolean;
    /** Error message if failed */
    error?: string;
}
/**
 * Start the MessageRouterService for cross-device agent communication.
 *
 * Sets up the local delivery handler (which writes to the agent's PTY
 * session via the terminal write endpoint) and begins listening for
 * incoming `agent_message` events from CloudSyncService.
 *
 * Non-blocking: failures are logged but do not affect Cloud connectivity.
 */
export declare function startMessageRouter(): void;
/**
 * Start the BrowserRelayAdapter auto-discovery to listen for Chrome Extension
 * devices coming online via CloudSync. When a device with role 'browser' is
 * detected, the adapter automatically sets its device ID as the relay target.
 *
 * Non-blocking: failures are logged but do not affect other services.
 */
export declare function startBrowserRelayAutoDiscovery(): void;
/**
 * Attempt to restore Cloud connection from persisted config.
 *
 * Called during backend startup. If ~/.crewly/cloud/config.json exists
 * and contains valid credentials, calls connectLocal() to restore state.
 *
 * @returns Result indicating whether connection was restored
 */
export declare function initializeCloudIfConfigured(): Promise<CloudInitResult>;
//# sourceMappingURL=cloud-initializer.d.ts.map