/** * SourceAdapter - Interface for data sources * * All data access in movi flows through this interface, enabling * unified handling of HTTP URLs and local Files. */ export interface SourceAdapter { /** * Get the total size of the source in bytes */ getSize(): Promise; /** * Read data from the source at the given offset * @param offset Byte offset to start reading from * @param length Number of bytes to read * @returns ArrayBuffer containing the requested data */ read(offset: number, length: number): Promise; /** * Seek to a position (for sources that need state) * @param offset The byte offset to seek to * @returns The actual offset seeked to */ seek(offset: number): number; /** * Get the current read position */ getPosition(): number; /** * Close the source and release resources */ close(): void; /** * Get a unique identifier for this source (used for caching) */ getKey(): string; } /** * Factory function type for creating source adapters */ export type SourceFactory = (config: SourceConfig) => Promise; import type { SourceConfig } from '../types'; //# sourceMappingURL=SourceAdapter.d.ts.map