import { ParseResultRO } from '@escapenavigator/types/dist/parse-results/parse-result.ro'; import { UpdateParseResultDto } from '@escapenavigator/types/dist/parse-results/update-parse-result.dto'; import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto'; import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro'; import { ApiMethodDeclaration } from '..'; declare const query: ApiMethodDeclaration>; declare const count: ApiMethodDeclaration; declare const getOne: ApiMethodDeclaration<{ id: number; }, ParseResultRO>; /** Следующая задача, ждущая проверки — чтобы не закрывать модалку. */ declare const next: ApiMethodDeclaration<{ exclude?: number; }, { id: number | null; }>; /** Кнопка «Спарсить сайт» в карточке компании. */ declare const enqueue: ApiMethodDeclaration<{ profileId: number; }, ParseResultRO>; declare const update: ApiMethodDeclaration<{ id: number; data: UpdateParseResultDto; }, ParseResultRO>; declare const rebuildDiff: ApiMethodDeclaration<{ id: number; }, ParseResultRO>; type ApplyResponse = { locationsCreated: number; questsCreated: number; questsUpdated: number; questsClosed: number; errors: string[]; }; declare const apply: ApiMethodDeclaration<{ id: number; }, ApplyResponse>; /** Закрыть задачу модерации без записи в каталог. */ declare const markApplied: ApiMethodDeclaration<{ id: number; }, { ok: boolean; }>; declare const reject: ApiMethodDeclaration<{ id: number; }, { ok: boolean; }>; /** Закрыть скопом все задачи «без изменений». */ declare const bulkMarkApplied: ApiMethodDeclaration, { affected: number; }>; declare const retry: ApiMethodDeclaration<{ id: number; }, { ok: boolean; }>; type ApiDeclaration = { query: typeof query; count: typeof count; getOne: typeof getOne; next: typeof next; enqueue: typeof enqueue; update: typeof update; rebuildDiff: typeof rebuildDiff; apply: typeof apply; markApplied: typeof markApplied; bulkMarkApplied: typeof bulkMarkApplied; reject: typeof reject; retry: typeof retry; }; export declare const parseResultsApiDeclaration: ApiDeclaration; export {};