import { Channel } from "./common"; export interface ContentSearchServiceProps { storeID: number; uuid: string; cdn: number; query: string; cursor?: string; channel?: Channel; } export type ContentItem = [contentTitle, contentURL, contentDescription, null, contentImage]; type contentTitle = string; type contentURL = string; type contentDescription = string | null; type contentImage = string | null; export interface ContentSearchResponse { content_cursor: string; content_is_norm: "true" | "false"; content_results: ContentItem[]; } export interface ContentSearchProps { query: string; callback: (response: ContentSearchResult) => void; page?: number; } export interface SearchContent { title: string; url: string; description?: string; image?: string; } interface ContentSearchResult { action: "content-search"; payload: ContentSearchPayload; } interface ContentSearchPayload { content: SearchContent[]; page: number; } export {};