import type { RequestContext } from '@mastra/core/request-context'; import type { VersionControl } from '../capabilities/version-control.js'; import type { IntegrationTools } from '../integrations/base.js'; import type { AuditAgentEmitter } from '../storage/domains/audit/domain.js'; import type { SourceControlStorageHandle } from '../storage/domains/source-control/base.js'; export interface SourceControlToolProvider { id: string; storage: SourceControlStorageHandle; versionControl: VersionControl; } type ReviewEvent = 'approve' | 'request-changes' | 'comment'; /** Returns why a review's leading `Verdict:` line contradicts the submitted event, if it does. */ export declare function verdictEventMismatch(event: ReviewEvent, body: string | undefined): string | undefined; /** * Returns the full SHA named by the body's `Reviewed head:` lines, `null` when any line is malformed or the lines * disagree, or `undefined` when absent. */ export declare function reviewedHeadFromBody(body: string | undefined): string | null | undefined; export declare function createSourceControlTools({ requestContext, providers, audit, }: { requestContext: RequestContext; providers: readonly SourceControlToolProvider[]; audit: AuditAgentEmitter; }): Promise; export {}; //# sourceMappingURL=source-control-tools.d.ts.map