import type { WorkerContext } from "./context.js"; import type { OAuth2Config } from "./oauth2.js"; export interface RuleRecord { id: string; when: string; emit: string[]; driverId: string; } export interface DriverRecord { id: string; name: string; configJson: string; enabled: boolean; } export interface APIClientOptions { baseUrl: string; apiKey?: string; oauth2Config?: OAuth2Config; tenantId?: string; } export declare class RulesClient { private readonly opts; constructor(opts: APIClientOptions); listRules(ctx?: WorkerContext): Promise; getRule(id: string, ctx?: WorkerContext): Promise; } export declare class DriversClient { private readonly opts; constructor(opts: APIClientOptions); listDrivers(ctx?: WorkerContext): Promise; getDriverById(id: string, ctx?: WorkerContext): Promise; } export declare class EventLogsClient { private readonly opts; constructor(opts: APIClientOptions); updateStatus(logId: string, status: string, errorMessage?: string, ctx?: WorkerContext): Promise; } export interface InstallationRecord { provider: string; accountId: string; accountName: string; installationId: string; providerInstanceKey: string; enterpriseId?: string; enterpriseSlug?: string; enterpriseName?: string; accessToken?: string; refreshToken?: string; expiresAt?: Date; } export declare class InstallationsClient { private readonly opts; constructor(opts: APIClientOptions); getByInstallationId(provider: string, installationId: string, ctx?: WorkerContext): Promise; } export interface SCMClientRecord { provider: string; apiBaseUrl: string; accessToken: string; providerInstanceKey: string; expiresAt?: Date; } export declare class SCMClientsClient { private readonly opts; constructor(opts: APIClientOptions); getSCMClient(provider: string, installationId: string, providerInstanceKey?: string, ctx?: WorkerContext): Promise; } //# sourceMappingURL=api.d.ts.map