import type { SpaceConfig } from '../config/types.js'; import type { AssetSummary } from '../contentful/assets.js'; export interface IndexedMediaRow { id: string; name: string; assetId: string; assetFileName: string; updatedAt: string; } export interface AuditMissingRow { id: string; title: string; fileName: string; } export declare function getIndexSyncedAt(space: SpaceConfig, preview?: boolean): string | null; export declare function searchAssetsInIndex(space: SpaceConfig, opts: { preview?: boolean; query?: string; exactFileName?: string; fileNamePattern?: RegExp; mimeTypePrefix?: string; limit?: number; skip?: number; }): AssetSummary[]; export declare function findAssetByFileNameInIndex(space: SpaceConfig, fileName: string, preview?: boolean): AssetSummary | null; export declare function mediaByAssetId(space: SpaceConfig, assetId: string, preview?: boolean): IndexedMediaRow[]; export declare function mediaForAssetFileNames(space: SpaceConfig, opts: { preview?: boolean; exactFileName?: string; fileNamePattern?: RegExp; limit?: number; }): { assets: AssetSummary[]; media: IndexedMediaRow[]; }; export interface IndexMetaEntry { key: string; value: string; } export interface DumpAssetRow { id: string; fileName: string; title: string; contentType: string; width: number | null; height: number | null; size: number | null; updatedAt: string; } export declare function readAllIndexMeta(space: SpaceConfig, preview?: boolean): IndexMetaEntry[]; export declare function assetContentTypeCounts(space: SpaceConfig, preview?: boolean): Array<{ contentType: string; count: number; }>; export declare function countAssetsInIndex(space: SpaceConfig, preview?: boolean, mimeTypePrefix?: string): number; export declare function countMediaInIndex(space: SpaceConfig, preview?: boolean): number; export declare function listAssetsForDump(space: SpaceConfig, opts?: { preview?: boolean; limit?: number; skip?: number; mimeTypePrefix?: string; }): DumpAssetRow[]; export declare function listMediaForDump(space: SpaceConfig, opts?: { preview?: boolean; limit?: number; skip?: number; }): IndexedMediaRow[]; export declare function auditMissingAlt(space: SpaceConfig, opts?: { preview?: boolean; limit?: number; }): { checked: number; missing: AuditMissingRow[]; }; export interface ReferenceEntryRow { id: string; contentType: string; slug: string | null; label: string; cmsLabel: string | null; updatedAt: string; tagTypeSlug: string | null; articleTypeSlug: string | null; date: string | null; } export type ReferenceListSort = 'label' | 'updated' | 'date'; export declare function referenceListOrderBy(sort?: ReferenceListSort): string; /** Ensures index lookup rows refer to a single entry; throws on duplicate slug/label matches. */ export declare function assertUniqueReferenceRows(rows: ReferenceEntryRow[], message: string): ReferenceEntryRow; export declare function listReferencesBySlug(space: SpaceConfig, contentType: string, slug: string, preview?: boolean): ReferenceEntryRow[]; export declare function listReferencesByLabel(space: SpaceConfig, contentType: string, label: string, preview?: boolean): ReferenceEntryRow[]; export declare function findReferenceBySlug(space: SpaceConfig, contentType: string, slug: string, preview?: boolean): ReferenceEntryRow | null; export declare function findReferenceByLabel(space: SpaceConfig, contentType: string, label: string, preview?: boolean): ReferenceEntryRow | null; export declare function listReferencesByCmsLabel(space: SpaceConfig, contentType: string, cmsLabel: string, preview?: boolean): ReferenceEntryRow[]; export declare function findReferenceByCmsLabel(space: SpaceConfig, contentType: string, cmsLabel: string, preview?: boolean): ReferenceEntryRow | null; export interface ListReferenceEntriesOptions { preview?: boolean; limit?: number; slug?: string; label?: string; cmsLabel?: string; tagTypeSlug?: string; tagTypeName?: string; articleTypeSlug?: string; articleTypeName?: string; sort?: ReferenceListSort; } export declare function listReferenceEntries(space: SpaceConfig, contentType: string, opts?: ListReferenceEntriesOptions): ReferenceEntryRow[]; export declare function countReferenceEntries(space: SpaceConfig, contentType?: string, preview?: boolean): number; export declare function referenceContentTypeCounts(space: SpaceConfig, preview?: boolean): Array<{ contentType: string; count: number; }>; export declare function listReferencesForDump(space: SpaceConfig, opts?: { preview?: boolean; contentType?: string; limit?: number; skip?: number; }): ReferenceEntryRow[]; export interface VisualAssetReviewRow { id: string; fileName: string; title: string; description: string | null; contentType: string; url: string; width: number | null; height: number | null; size: number | null; updatedAt: string; } /** All visual assets (images, videos, Lottie JSON) from the index for media review. */ export declare function listVisualAssetsForReview(space: SpaceConfig, opts?: { preview?: boolean; }): VisualAssetReviewRow[]; /** Count media wrapper entries per asset ID (batch). */ export declare function countMediaByAssetIds(space: SpaceConfig, assetIds: string[], preview?: boolean): Map; //# sourceMappingURL=query.d.ts.map