import { Component, Request } from '@pjblog/http'; import { ArticleDBO } from '../dbos/article'; import { Configs } from '../../configs/service'; import { TArticleRaw, TMarkdownHeadingProps } from '../types'; import type { EntityManager } from 'typeorm'; interface IAritlcesRaw extends TArticleRaw { html: string; md5: string; headings: TMarkdownHeadingProps[]; } export interface I_GetArticlesControllerResponse { total: number; dataSource: any[]; } export declare class _GetArticlesController extends Component { readonly manager: EntityManager; readonly service: ArticleDBO; readonly configs: Configs; constructor(req: Request); createRunner(): Promise>; getPageAndSize(): Promise; getList(): Promise; formatArticles(): Promise<{ id: number; code: string; title: string; cover: string; ctime: string; mtime: string; readCount: number; summary: string; category: { id: number; name: string; }; tags: { id: number; name: string; }[]; user: { id: number; account: string; nickname: string; avatar: string; level: number; }; }[]>; responsed(): void; } export {};