import 'server-only'; import Model, { ModelError } from './model'; import type { DBAPIArticleData } from '../dbapi-client/helpers/dbapi-article-helper'; import Pagination from './helpers/pagination'; export * from './article.types'; export type ArticleModelSearchParams = { page?: number | string; pageSize?: number; branchId?: number; sort?: string; topic?: string; }; export default class Article extends Model { static pagination: Pagination | null; static findOne({ slug, }: { slug: string; }): Promise<{ result: Article | null; errors: ModelError[] | null; }>; static findAll(searchParams?: ArticleModelSearchParams): Promise<{ results: Article[]; pagination: Pagination | null; errors: ModelError[] | null; }>; get id(): number | null; get slug(): string | null; get title(): string | null; get topic(): string | null; get content(): string | null; get displayDate(): string | null; get rawDate(): string | null; get datePublished(): string | null; get promo(): string | null; get image(): string | null; get heroImage(): string | null; get promoImage(): string | null; get photos(): string[] | null; } //# sourceMappingURL=article.d.ts.map