import type { Config, PagedResponse } from '../../types/index.js'; export type Targets = { contentzone?: string; language?: string; country?: string; benefits?: string; channel?: string; segments?: string; } & Record; export type QuerySearchContents = { spaceCode?: string; environmentCode?: string; contentTypeCode?: string; codes?: string | string[]; target?: Targets; sort?: string; page?: number; pageSize?: number; metadataSearchTagsValues?: string; metadataCustom?: string; }; export type ComponentType = { type: string; components?: ComponentType[]; fields?: Record; content?: string; customType?: string; value?: string | number | boolean; hex?: string; name?: string; displayOptions?: Record; }; export type ContentMetadata = { custom?: Record; }; export type ContentEntry = { publicationId: string; publicationDate: string; versionId: string; spaceCode: string; metadata?: ContentMetadata; target?: Targets; contentTypeCode: string; environmentCode: string; code: string; ranking?: number; components: T; }; export type Contents = PagedResponse; export type GetSearchContents = (query?: QuerySearchContents, config?: Config) => Promise;