un-oj
Version:
Unified Online Judge information collector.
24 lines (22 loc) • 849 B
TypeScript
import { Platform, PlatformOptions, Problem } from "../platform-DVQwRMI1.js";
//#region src/platforms/codeforces.d.ts
type ProblemType = 'traditional' | 'interactive' | 'communication' | 'submission';
/**
* Codeforces-specific problem type.
*
* Description is HTML.
*/
type Problem$1 = Problem<string, number | undefined, number | undefined, string[], ProblemType>;
declare const DEFAULT_BASE_URL = "https://codeforces.com";
/** Codeforces platform. */
declare class Codeforces extends Platform {
constructor(options?: PlatformOptions);
/**
* Fetches a problem from Codeforces, extracting information from HTML.
*
* Automatically switches to gym mode if {@link id} > `100000`.
*/
getProblem(id: string): Promise<Problem$1>;
}
//#endregion
export { DEFAULT_BASE_URL, Problem$1 as Problem, ProblemType, Codeforces as default };