/** * Devices Store * Svelte 5 store for device enumeration and management */ import { type DeviceInfo } from "@livepeer-frameworks/streamcrafter-core"; export interface DevicesState { devices: DeviceInfo[]; videoInputs: DeviceInfo[]; audioInputs: DeviceInfo[]; audioOutputs: DeviceInfo[]; isLoading: boolean; error: string | null; hasPermission: { video: boolean; audio: boolean; }; } export interface DevicesStore { subscribe: (fn: (state: DevicesState) => void) => () => void; refresh: () => Promise; requestPermissions: (options?: { video?: boolean; audio?: boolean; }) => Promise; destroy: () => void; } export declare function createDevicesStore(): DevicesStore;