import type { EndpointEffect, EndpointToolErrorCode } from '@xopcai/endpoint-tools-protocol'; export interface EndpointToolInvocationAudit { id: string; principalId: string; endpointId: string; toolCallId: string; toolName: string; effect: EndpointEffect; confirmationRequired: boolean; argumentsSha256: string; status: 'running' | 'succeeded' | 'failed'; errorCode?: EndpointToolErrorCode; errorMessage?: string; startedAt: number; completedAt?: number; } export declare function startEndpointToolInvocationAudit(audit: Omit): void; export declare function finishEndpointToolInvocationAudit(params: { id: string; status: 'succeeded' | 'failed'; errorCode?: EndpointToolErrorCode; errorMessage?: string; completedAt?: number; }): void; export declare function listEndpointToolInvocationAudits(limit?: number): EndpointToolInvocationAudit[];