/*! * Copyright (c) 2026-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { AudioCodec, AudioSample, CustomAudioEncoder, type MaybePromise } from 'mediabunny'; import * as NodeAv from 'node-av'; import { AdtsHeaderTemplate } from '../../../shared/aac-misc'; export declare class NodeAvAudioEncoder extends CustomAudioEncoder { frame: NodeAv.Frame; packet: NodeAv.Packet; codecContext: NodeAv.CodecContext | null; resampler: NodeAv.SoftwareResampleContext | null; dstFrame: NodeAv.Frame | null; avCodec: NodeAv.Codec; inputParametersKey: string | null; resamplerInputSampleRate: number | null; nextResamplerPts: bigint | null; packetEmitted: boolean; adtsHeaderTemplate: AdtsHeaderTemplate | null; static supports(codec: AudioCodec, config: AudioEncoderConfig): boolean; init(): Promise; createCodecContext(): Promise; encode(audioSample: AudioSample): Promise; pullResampledFrames(): Promise; sendFrameAndReceivePackets(frame: NodeAv.Frame | null): Promise; receivePacket(ret: number): void; flush(): Promise; close(): MaybePromise; } //# sourceMappingURL=audio-encoder.d.ts.map