import type { Snippet } from 'svelte'; import type { PersistedAsset } from './types'; export interface AssetDetailUpdates { name?: string; description?: string; alt?: string; title?: string; caption?: string; } export interface AssetDetailProps { /** The asset to display */ asset: PersistedAsset | null; /** Whether the detail view is open */ open: boolean; /** Callback when detail is closed */ onClose?: () => void; onclose?: () => void; /** Callback when asset is updated (save metadata) */ onSave?: (asset: PersistedAsset, updates: AssetDetailUpdates) => void | Promise; onsave?: (asset: PersistedAsset, updates: AssetDetailUpdates) => void | Promise; /** Callback when asset is deleted */ onDelete?: (asset: PersistedAsset) => void; ondelete?: (asset: PersistedAsset) => void; /** Callback to open the image editor */ onEdit?: (asset: PersistedAsset) => void; onedit?: (asset: PersistedAsset) => void; /** Content references snippet (injected by smrt-content) */ contentReferences?: Snippet<[{ assetId: string; }]>; } declare const AssetDetail: import("svelte").Component; type AssetDetail = ReturnType; export default AssetDetail; //# sourceMappingURL=AssetDetail.svelte.d.ts.map