/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { AdoBuildRecord, AdoTimeline, BuildPerfMode } from "./types.js"; /** * Options for fetching builds from ADO. */ export interface FetchBuildsOptions { adoToken: string; org: string; project: string; mode: BuildPerfMode; buildCount: number; buildDefId: number; } /** * Options for fetching timeline data from ADO. */ export interface FetchTimelinesOptions { adoToken: string; org: string; project: string; buildIds: number[]; parallelJobs: number; } /** * Logger interface for ADO client operations. */ export interface AdoClientLogger { log: (message: string, ...args: unknown[]) => void; warning: (message: string | Error, ...args: unknown[]) => string | Error | void; verbose: (message: string | Error, ...args: unknown[]) => string | Error | void; } /** * Fetch build records from Azure DevOps. * * Public mode: fetches PR builds (succeeded/partiallySucceeded, completed). * Internal mode: fetches main branch builds (succeeded/partiallySucceeded, completed). */ export declare function fetchBuilds(options: FetchBuildsOptions, logger?: AdoClientLogger): Promise; /** * Fetch timeline data for multiple builds from Azure DevOps, with concurrency control. * * @returns A map of buildId (as string) to AdoTimeline. */ export declare function fetchTimelines(options: FetchTimelinesOptions, logger?: AdoClientLogger): Promise>; //# sourceMappingURL=adoClient.d.ts.map