import type { FactoryRuleJsonValue } from '../../rules/types.js'; import type { IntegrationStorageHandle } from '../../storage/domains/integrations/base.js'; import type { SourceControlStorageHandle } from '../../storage/domains/source-control/base.js'; import type { FactoryRunBindingRecord, WorkItemRow, WorkItemsStorage } from '../../storage/domains/work-items/base.js'; import type { GithubIntegration } from './integration.js'; export interface RecordFactoryPullRequestProvenanceInput { binding: FactoryRunBindingRecord; item: WorkItemRow; assistantMessageId: string; toolCallId: string; toolName: string; toolInput: FactoryRuleJsonValue; toolResult: FactoryRuleJsonValue; status: 'success' | 'error'; } export interface FactoryPullRequestProvenanceData { kind: 'factory-pr-provenance'; bindingId: string; workItemId: string; factoryProjectId: string; repositoryId: number; pullRequestNumber: number; pullRequestUrl: string; assistantMessageId: string; toolCallId: string; } export declare function resolveFactoryPullRequestParentWorkItemId(integrationStorage: IntegrationStorageHandle, Record, FactoryPullRequestProvenanceData>, input: { orgId: string; factoryProjectId: string; repositoryId: number; pullRequestNumber: number; }): Promise; export declare function recordFactoryPullRequestProvenance(github: GithubIntegration, sourceControl: SourceControlStorageHandle, integrationStorage: IntegrationStorageHandle, Record, FactoryPullRequestProvenanceData>, workItems: WorkItemsStorage, input: RecordFactoryPullRequestProvenanceInput): Promise; //# sourceMappingURL=provenance.d.ts.map