/** Low-level options for constructing a {@link Denoise} directly. Prefer the per-provider factories. */ export type DenoiseOptions = { /** Denoise provider name. Default: `''`. */ provider?: string; /** Provider model identifier. Default: `''`. */ modelId?: string; /** Model input sample rate in Hz. Default: `null`. */ modelSampleRate?: number | null; /** Audio chunk size in milliseconds. Default: `null`. */ chunkMs?: number | null; /** Auth token; falls back to the `ZRT_AUTH_TOKEN` environment variable. Default: `null`. */ gatewayToken?: string | null; /** Override base URL for the provider. Default: `null`. */ baseUrl?: string | null; maxDelayMs?: number | null; [key: string]: any; }; /** Options for {@link Denoise.sanas}. */ export type DenoiseSanasOptions = { /** Model identifier. Default: `'VI_G_NC3.0'`. */ modelId?: string; /** Model input sample rate in Hz. Default: `16000`. */ sampleRate?: number; /** Audio chunk size in milliseconds. Default: `20`. */ chunkMs?: number; /** Auth token; falls back to `ZRT_AUTH_TOKEN`. Default: `null`. */ gatewayToken?: string | null; /** Override base URL. Default: `null`. */ baseUrl?: string | null; /** Output latency budget in ms for the denoise delay line. Default: `null` (runtime default). */ maxDelayMs?: number | null; }; /** Options for {@link Denoise.aicoustics}. */ export type DenoiseAicousticsOptions = { /** Model identifier. Default: `'rook-l-48khz'`. */ modelId?: string; /** Model input sample rate in Hz. Default: `48000`. */ sampleRate?: number; /** Audio chunk size in milliseconds. Default: `10`. */ chunkMs?: number; /** Auth token; falls back to `ZRT_AUTH_TOKEN`. Default: `null`. */ gatewayToken?: string | null; /** Override base URL. Default: `null`. */ baseUrl?: string | null; /** Output latency budget in ms for the denoise delay line. Default: `null` (runtime default). */ maxDelayMs?: number | null; }; /** Options for {@link Denoise.krisp}. */ export type DenoiseKrispOptions = { /** Provider override. Default: unused. */ provider?: string | null; /** Model identifier. Default: `'kv5'`. */ modelId?: string; /** Model input sample rate in Hz. Default: `48000`. */ sampleRate?: number; /** Audio chunk size in milliseconds. Default: `10`. */ chunkMs?: number; /** Auth token; falls back to `ZRT_AUTH_TOKEN`. Default: `null`. */ gatewayToken?: string | null; /** Override base URL. Default: `null`. */ baseUrl?: string | null; /** Output latency budget in ms for the denoise delay line. Default: `null` (runtime default). */ maxDelayMs?: number | null; }; /** * Noise-suppression configuration applied to inbound audio. Use the static * factories ({@link Denoise.rnnoise}, {@link Denoise.sanas}, {@link Denoise.aicoustics}, * {@link Denoise.krisp}) to select a provider. */ export declare class Denoise { _providerName: string; /** Provider model identifier. */ modelId: string; /** Model input sample rate in Hz, or `null` for the provider default. */ modelSampleRate: number | null; /** Audio chunk size in milliseconds, or `null` for the provider default. */ chunkMs: number | null; /** Auth token used to reach the provider. */ gatewayToken: string | null; /** Override base URL for the provider, or `null` for the default. */ baseUrl: string | null; /** Output latency budget in ms for the denoise delay line, or `null` for the runtime default. */ maxDelayMs: number | null; _isInference?: boolean; constructor(opts?: DenoiseOptions); /** Denoise using the built-in RNNoise model (no external provider). */ static rnnoise(): Denoise; /** Denoise using the Sanas provider. */ static sanas(opts?: DenoiseSanasOptions): Denoise; /** Denoise using the ai-coustics provider. */ static aicoustics(opts?: DenoiseAicousticsOptions): Denoise; /** Denoise using the Krisp provider. */ static krisp(opts?: DenoiseKrispOptions): Denoise; }