import type { AFManifest } from './AFContainer.cjs'; export type AFEncodedStream = 'color' | 'alpha' | 'depth'; export type AFEncodedSourceErrorCode = 'network' | 'range-invalid' | 'asset-changed' | 'integrity' | 'resource-budget' | 'aborted' | 'disposed' | 'source-invalid'; export declare class AFEncodedSourceError extends Error { readonly code: AFEncodedSourceErrorCode; readonly details: Readonly>; readonly cause?: unknown; constructor(code: AFEncodedSourceErrorCode, message: string, options?: { cause?: unknown; details?: Record; }); } export interface AFEncodedSource { readonly manifest: AFManifest; ensureFrames(stream: AFEncodedStream, frames: readonly number[], signal?: AbortSignal): Promise; releaseExcept?(stream: AFEncodedStream, frames: readonly number[]): void; dispose(): void; } /** * Immediate adapter for an already downloaded ActiveFrame buffer. * * The adapter owns the parsed frame views and clears them on disposal so the backing buffer can * be reclaimed even if a consumer retains the manifest object. */ export declare class AFFullBufferSource implements AFEncodedSource { readonly manifest: AFManifest; readonly primaryStream: 'color' | 'depth'; private disposed; constructor(buffer: ArrayBuffer, options?: { primaryStream?: 'color' | 'depth'; }); ensureFrames(stream: AFEncodedStream, frames: readonly number[], signal?: AbortSignal): Promise; releaseExcept(stream: AFEncodedStream, frames: readonly number[]): void; dispose(): void; }