import { AccelbyteSDK } from '@accelbyte/sdk'; import { z } from 'zod'; import React from 'react'; declare class PermissionUtils { static checkNewsAdminPermission: (sdk: AccelbyteSDK, accessToken?: string | undefined) => Promise; } declare enum NewsStatus { DRAFT = "DRAFT", PUBLISHED = "PUBLISHED" } declare enum CategoryStatus { VISIBLE = "VISIBLE", HIDDEN = "HIDDEN" } declare const Category: z.ZodObject<{ id: z.ZodString; namespace: z.ZodString; name: z.ZodString; slug: z.ZodString; status: z.ZodEnum<[CategoryStatus.HIDDEN, CategoryStatus.VISIBLE]>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status: CategoryStatus; name: string; namespace: string; id: string; slug: string; createdAt?: string | null | undefined; updatedAt?: string | null | undefined; }, { status: CategoryStatus; name: string; namespace: string; id: string; slug: string; createdAt?: string | null | undefined; updatedAt?: string | null | undefined; }>; interface Category extends z.TypeOf { } declare const CategoryList: z.ZodObject<{ data: z.ZodArray; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status: CategoryStatus; name: string; namespace: string; id: string; slug: string; createdAt?: string | null | undefined; updatedAt?: string | null | undefined; }, { status: CategoryStatus; name: string; namespace: string; id: string; slug: string; createdAt?: string | null | undefined; updatedAt?: string | null | undefined; }>, "many">; paging: z.ZodObject<{ previous: z.ZodOptional>; next: z.ZodOptional>; }, "strip", z.ZodTypeAny, { previous?: string | null | undefined; next?: string | null | undefined; }, { previous?: string | null | undefined; next?: string | null | undefined; }>; }, "strip", z.ZodTypeAny, { data: { status: CategoryStatus; name: string; namespace: string; id: string; slug: string; createdAt?: string | null | undefined; updatedAt?: string | null | undefined; }[]; paging: { previous?: string | null | undefined; next?: string | null | undefined; }; }, { data: { status: CategoryStatus; name: string; namespace: string; id: string; slug: string; createdAt?: string | null | undefined; updatedAt?: string | null | undefined; }[]; paging: { previous?: string | null | undefined; next?: string | null | undefined; }; }>; interface CategoryList extends z.TypeOf { } declare const News: z.ZodObject<{ id: z.ZodString; namespace: z.ZodString; title: z.ZodString; metaDescription: z.ZodOptional>; slug: z.ZodString; smallThumbnail: z.ZodOptional>; largeThumbnail: z.ZodOptional>; featured: z.ZodOptional>; featuredDisplayOrder: z.ZodOptional>; status: z.ZodEnum<[NewsStatus.DRAFT, NewsStatus.PUBLISHED]>; htmlContent: z.ZodOptional>; categories: z.ZodOptional; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "status" | "name" | "id" | "slug">, "strip", z.ZodTypeAny, { status: CategoryStatus; name: string; id: string; slug: string; }, { status: CategoryStatus; name: string; id: string; slug: string; }>, "many">>>; createdAt: z.ZodString; publishedAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status: NewsStatus; namespace: string; title: string; id: string; createdAt: string; slug: string; metaDescription?: string | null | undefined; smallThumbnail?: string | null | undefined; largeThumbnail?: string | null | undefined; featured?: boolean | null | undefined; featuredDisplayOrder?: number | null | undefined; htmlContent?: string | null | undefined; categories?: { status: CategoryStatus; name: string; id: string; slug: string; }[] | null | undefined; publishedAt?: string | null | undefined; updatedAt?: string | null | undefined; }, { status: NewsStatus; namespace: string; title: string; id: string; createdAt: string; slug: string; metaDescription?: string | null | undefined; smallThumbnail?: string | null | undefined; largeThumbnail?: string | null | undefined; featured?: boolean | null | undefined; featuredDisplayOrder?: number | null | undefined; htmlContent?: string | null | undefined; categories?: { status: CategoryStatus; name: string; id: string; slug: string; }[] | null | undefined; publishedAt?: string | null | undefined; updatedAt?: string | null | undefined; }>; interface News extends z.TypeOf { } declare const NewsList: z.ZodObject<{ data: z.ZodArray>; slug: z.ZodString; smallThumbnail: z.ZodOptional>; largeThumbnail: z.ZodOptional>; featured: z.ZodOptional>; featuredDisplayOrder: z.ZodOptional>; status: z.ZodEnum<[NewsStatus.DRAFT, NewsStatus.PUBLISHED]>; htmlContent: z.ZodOptional>; categories: z.ZodOptional; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "status" | "name" | "id" | "slug">, "strip", z.ZodTypeAny, { status: CategoryStatus; name: string; id: string; slug: string; }, { status: CategoryStatus; name: string; id: string; slug: string; }>, "many">>>; createdAt: z.ZodString; publishedAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status: NewsStatus; namespace: string; title: string; id: string; createdAt: string; slug: string; metaDescription?: string | null | undefined; smallThumbnail?: string | null | undefined; largeThumbnail?: string | null | undefined; featured?: boolean | null | undefined; featuredDisplayOrder?: number | null | undefined; htmlContent?: string | null | undefined; categories?: { status: CategoryStatus; name: string; id: string; slug: string; }[] | null | undefined; publishedAt?: string | null | undefined; updatedAt?: string | null | undefined; }, { status: NewsStatus; namespace: string; title: string; id: string; createdAt: string; slug: string; metaDescription?: string | null | undefined; smallThumbnail?: string | null | undefined; largeThumbnail?: string | null | undefined; featured?: boolean | null | undefined; featuredDisplayOrder?: number | null | undefined; htmlContent?: string | null | undefined; categories?: { status: CategoryStatus; name: string; id: string; slug: string; }[] | null | undefined; publishedAt?: string | null | undefined; updatedAt?: string | null | undefined; }>, "many">; paging: z.ZodObject<{ previous: z.ZodOptional>; next: z.ZodOptional>; }, "strip", z.ZodTypeAny, { previous?: string | null | undefined; next?: string | null | undefined; }, { previous?: string | null | undefined; next?: string | null | undefined; }>; }, "strip", z.ZodTypeAny, { data: { status: NewsStatus; namespace: string; title: string; id: string; createdAt: string; slug: string; metaDescription?: string | null | undefined; smallThumbnail?: string | null | undefined; largeThumbnail?: string | null | undefined; featured?: boolean | null | undefined; featuredDisplayOrder?: number | null | undefined; htmlContent?: string | null | undefined; categories?: { status: CategoryStatus; name: string; id: string; slug: string; }[] | null | undefined; publishedAt?: string | null | undefined; updatedAt?: string | null | undefined; }[]; paging: { previous?: string | null | undefined; next?: string | null | undefined; }; }, { data: { status: NewsStatus; namespace: string; title: string; id: string; createdAt: string; slug: string; metaDescription?: string | null | undefined; smallThumbnail?: string | null | undefined; largeThumbnail?: string | null | undefined; featured?: boolean | null | undefined; featuredDisplayOrder?: number | null | undefined; htmlContent?: string | null | undefined; categories?: { status: CategoryStatus; name: string; id: string; slug: string; }[] | null | undefined; publishedAt?: string | null | undefined; updatedAt?: string | null | undefined; }[]; paging: { previous?: string | null | undefined; next?: string | null | undefined; }; }>; interface NewsList extends z.TypeOf { } declare const NewsSearchList: z.ZodObject<{ data: z.ZodArray>; }, "strip", z.ZodTypeAny, { namespace: string; title: string; id: string; slug: string; titleHeadline: string; bodyHeadline?: string | null | undefined; }, { namespace: string; title: string; id: string; slug: string; titleHeadline: string; bodyHeadline?: string | null | undefined; }>, "many">; paging: z.ZodObject<{ previous: z.ZodOptional>; next: z.ZodOptional>; }, "strip", z.ZodTypeAny, { previous?: string | null | undefined; next?: string | null | undefined; }, { previous?: string | null | undefined; next?: string | null | undefined; }>; }, "strip", z.ZodTypeAny, { data: { namespace: string; title: string; id: string; slug: string; titleHeadline: string; bodyHeadline?: string | null | undefined; }[]; paging: { previous?: string | null | undefined; next?: string | null | undefined; }; }, { data: { namespace: string; title: string; id: string; slug: string; titleHeadline: string; bodyHeadline?: string | null | undefined; }[]; paging: { previous?: string | null | undefined; next?: string | null | undefined; }; }>; interface NewsSearchList extends z.TypeOf { } interface NewsCategoryWidgetProps { newsList: NewsList; categoryList: CategoryList; selectedCategory: Category | null; isAdmin: boolean; isLoadingMore: boolean; onLoadMore: (sdk: AccelbyteSDK) => void; onLoadMoreCategory: (sdk: AccelbyteSDK) => void; isLoadingMoreCategory: boolean; } declare const NewsCategoryWidget: ({ newsList, onLoadMore, isAdmin, categoryList, isLoadingMore, selectedCategory, onLoadMoreCategory, isLoadingMoreCategory }: NewsCategoryWidgetProps) => JSX.Element; interface NewsDetailWidgetProps { newsDetail: News; newsList: NewsList; categorySlug?: string; fromLauncher?: boolean; } declare const NewsDetailWidget: ({ newsDetail, newsList, categorySlug, fromLauncher }: NewsDetailWidgetProps) => JSX.Element; declare type NewsListFetcherParams = { sdk: AccelbyteSDK; offset?: string; limit?: string; featured?: boolean; query?: string; }; declare type NewsListBySlugFetcherParams = { sdk: AccelbyteSDK; slug: string; }; interface NewsListByCategoryFetcherProps extends NewsListFetcherParams { categorySlug: string; } declare const newsListFetcher: ({ sdk, offset, limit, featured }: NewsListFetcherParams) => Promise; declare const newsDetailFetcher: ({ sdk, slug }: NewsListBySlugFetcherParams) => Promise; declare const newsListByCategoryFetcher: ({ sdk, offset, limit, categorySlug }: NewsListByCategoryFetcherProps) => Promise; declare const categoriesFetcher: ({ sdk, offset, limit }: NewsListFetcherParams) => Promise; declare const categoryFetcher: ({ sdk, categorySlug }: { sdk: AccelbyteSDK; categorySlug: string; }) => Promise; declare const newsSearchFetcher: ({ sdk, offset, limit, query }: NewsListFetcherParams) => Promise; interface NewsPageWidgetProps { newsList: NewsList; featuredNewsList: NewsList; isAdmin: boolean; isLoadingMore: boolean; onLoadMore: (sdk: AccelbyteSDK) => void; manageNewsURL?: string; } declare const NewsPageWidget: ({ newsList, featuredNewsList, onLoadMore, isAdmin, isLoadingMore, manageNewsURL }: NewsPageWidgetProps) => JSX.Element; interface NewsSearchWidgetProps { newsList: NewsList; isLoadingMore: boolean; onLoadMore: () => void; searchKeyword: string; } declare const NewsSearchWidget: ({ newsList, onLoadMore, isLoadingMore, searchKeyword }: NewsSearchWidgetProps) => JSX.Element; declare function NewsListFeaturedPageWidget(): JSX.Element; declare function NewsListPageWidget(): JSX.Element; declare function CreateNewsPageWidget(): JSX.Element; declare function EditNewsPageWidget({ newsId }: { newsId: string; }): JSX.Element; declare function CategoriesPageWidget(): JSX.Element; declare function CreateCategoryPageWidget(): JSX.Element; declare function EditCategoryPageWidget({ id }: { id: string; }): JSX.Element; declare function ManageContentPageWidget({ children }: { children: React.ReactNode; }): JSX.Element; export { CategoriesPageWidget, CreateCategoryPageWidget, CreateNewsPageWidget, EditCategoryPageWidget, EditNewsPageWidget, ManageContentPageWidget, NewsCategoryWidget, NewsCategoryWidgetProps, NewsDetailWidget, NewsDetailWidgetProps, NewsListFeaturedPageWidget, NewsListPageWidget, NewsPageWidget, NewsSearchWidget, PermissionUtils, categoriesFetcher, categoryFetcher, newsDetailFetcher, newsListByCategoryFetcher, newsListFetcher, newsSearchFetcher };