UNPKG

un-oj

Version:

Unified Online Judge information collector.

28 lines (26 loc) 869 B
import { Platform, PlatformOptions, Problem } from "../platform-DVQwRMI1.js"; //#region src/platforms/atcoder.d.ts type ProblemType = 'traditional' | 'interactive'; type Locale = 'en' | 'ja'; /** * AtCoder-specific problem type. * * For interactive problems, {@link Problem.samples} is empty. The samples are * included in {@link Problem.description}. */ type Problem$1 = Problem<string, number, undefined, undefined>; declare const DEFAULT_BASE_URL = "https://atcoder.jp"; /** * AtCoder platform. * * I18n is supported. */ declare class AtCoder extends Platform<Locale> { constructor(options?: PlatformOptions<Locale>); /** * Fetches a problem from AtCoder, extracting information from HTML. */ getProblem(id: string): Promise<Problem$1>; } //#endregion export { DEFAULT_BASE_URL, Locale, Problem$1 as Problem, ProblemType, AtCoder as default };