import type { FastifyInstance } from "fastify";
import { type MediaRow } from "../db/schema.js";
import type { LocalStorageConnector } from "../storage/LocalStorageConnector.js";
/** Réutilisé par les routes albums (grille d'un album). */
export declare function serializeMedia(m: MediaRow): {
    id: string;
    familyId: string;
    path: string;
    name: string;
    etag: string;
    size: number;
    mime: string;
    capturedAt: string;
    capturedAtSource: "filename" | "mtime" | "exif" | "client";
    width: number | null;
    height: number | null;
    durationMs: number | null;
    hasPreview: boolean;
    uploadedBy: string | null;
    caption: string | null;
    updatedAt: string;
};
export declare function registerMediaRoutes(app: FastifyInstance, opts: {
    storage: LocalStorageConnector;
}): void;
