aoc-copilot
Version:
Advent of Code automatic runner for examples and inputs
47 lines • 1.25 kB
TypeScript
import * as fx from './fx';
type Egdb = {
reason: string;
part1length: number;
inputs: {
selector: string;
indexes: (number | number[])[];
transforms?: {
functions: fx.Fx[];
appliesTo: number[];
}[];
};
answers: {
selector: string;
indexesOrLiterals: (number | number[] | string)[];
transforms?: {
functions: fx.Fx[];
appliesTo: number[];
}[];
};
additionalInfos?: {
key: string;
selector: string;
indexes: number[];
transforms?: {
functions: fx.Fx[];
appliesTo: number[];
}[];
};
};
type AdditionalInfo = {
[key: string]: string;
};
type Example = {
part: number;
inputs: string[];
answer: string;
additionalInfo?: AdditionalInfo;
};
declare function getExamples(year: number, day: number, part1only: boolean, $: cheerio.Root, addDb?: Egdb, addTests?: Example[]): Promise<Example[]>;
declare function defaultSearchStrategy($: cheerio.Root): {
inputs: string;
answer1: string;
answer2: string;
};
export { AdditionalInfo, defaultSearchStrategy, Egdb, Example, getExamples };
//# sourceMappingURL=examples.d.ts.map