import type { EmitterSubscription } from 'react-native'; export interface CastSessionEvent { connected: boolean; deviceName?: string; error?: string; } /** * Listen for Chromecast session state changes (connect/disconnect). * Emitted by the native module when Google Cast session starts, resumes, ends, or suspends. * Returns an EmitterSubscription — call .remove() to unsubscribe. * * @example * ```ts * const sub = addCastSessionListener((event) => { * console.log(event.connected ? `Connected to ${event.deviceName}` : 'Disconnected'); * }); * // Later: sub.remove(); * ``` */ export declare function addCastSessionListener(callback: (event: CastSessionEvent) => void): EmitterSubscription; //# sourceMappingURL=cast.d.ts.map