import type { MutableRefObject } from "react"; import type { AudioPipeline } from "../../types.js"; import type { MicrophoneBufferType } from "../types/Microphone.js"; export interface PushToTalkGate { /** Whether the key or button is currently held. */ isPttActive: MutableRefObject; /** Called by the embedder from whatever its trigger is. */ setActive(active: boolean): void; } export declare function usePushToTalkGate(microphoneBuffer: MicrophoneBufferType, audioContext: AudioContext | undefined, ownPipeline?: AudioPipeline | null): PushToTalkGate;