/** * registry.ts — FormatHandlerRegistry * * Maintains an ordered list of format handlers. * Handlers are tried in registration order; the first canHandle() match wins. * FallbackHandler is always last. */ import { FormatHandler } from "../types"; export declare class FormatHandlerRegistry { private readonly _handlers; private readonly _fallback; /** * Register a handler. Handlers registered earlier take priority. */ register(handler: FormatHandler): this; /** * Find the best handler for the given bytes and MIME type. * Always returns a handler (falls through to FallbackHandler). */ resolve(bytes: Uint8Array, mimeType?: string): FormatHandler; /** * List all registered handler names (for debugging). */ listHandlers(): string[]; }