/** * What `useNativeAudioCapture()` returns. The `State` suffix is load-bearing: * `NativeAudioCapture` in `host/index.ts` is the host API, and both used to share a name. */ export interface NativeAudioCaptureState { /** Whether the native binary is present on this platform. */ available: boolean; /** Whether native capture is currently running. */ active: boolean; /** The MediaStream produced by the native capture (null when inactive). */ stream: MediaStream | null; start: (audioContext: AudioContext, sourceId?: string) => Promise; stop: () => void; } /** * Manages a native audio capture session: with a window sourceId, only that app's audio; * otherwise all system audio but Gryt's own. A no-op where there is no native binary. */ export declare function useNativeAudioCapture(): NativeAudioCaptureState;