import "../options-B5K8QEV1.mjs"; import { t as Database } from "../types-BCOU_CXE.mjs"; import "../types-XJPFqvc1.mjs"; import "../authz-cKSuylYa.mjs"; import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-CZAsZ2bK.mjs"; import "../index-HRJ8DhHY.mjs"; import "../runner-Bnq68jCZ.mjs"; import "../index-BFUET8yL.mjs"; import { d as Storage } from "../types-D_DWe7k9.mjs"; import "../types-C2avdenh.mjs"; import "../hreflang-BktsQIF_.mjs"; import "../validate-3945fzPI.mjs"; import "../index.mjs"; import { Kysely } from "kysely"; //#region src/media/local-runtime.d.ts interface LocalMediaRuntimeConfig { enabled?: boolean; db?: Kysely; /** * Resolver for the live connection, preferred over `db`. The runtime * injects it so a connection-backed adapter (Postgres over Hyperdrive) * serves provider queries from the current request-scoped connection in ALS * rather than a snapshot of the per-isolate singleton. Omitted for stateless * adapters (D1, Node SQLite), where `db` is used directly. */ getDb?: () => Kysely; storage?: Storage; } /** * Create the local media provider */ declare const createMediaProvider: CreateMediaProviderFn; /** * Helper to convert a MediaRepository item to MediaProviderItem */ declare function repoItemToProviderItem(item: { id: string; filename: string; mimeType: string; size: number | null; width: number | null; height: number | null; alt: string | null; caption: string | null; storageKey: string; blurhash: string | null; dominantColor: string | null; }): MediaProviderItem; //#endregion export { LocalMediaRuntimeConfig, createMediaProvider, repoItemToProviderItem }; //# sourceMappingURL=local-runtime.d.mts.map