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 interface EndpointToolInvocationAuditPage { items: EndpointToolInvocationAudit[]; page: number; pageSize: number; total: number; totalPages: number; } export declare function listEndpointToolInvocationAuditPage(options?: { page?: number; pageSize?: number; query?: string; principalId?: string; status?: EndpointToolInvocationAudit['status']; effect?: EndpointEffect; }): EndpointToolInvocationAuditPage;