export interface UserMediaHook { stream: MediaStream | null; recording: boolean; start: () => void; stop: () => void; } export declare function useUserMedia(constraints?: MediaStreamConstraints, onSuccess?: (stream: MediaStream) => void, onError?: (error: Error) => void): UserMediaHook;