import type { Grantex } from '@grantex/sdk'; import type { GrantexFunction } from './types.js'; export interface AuditLoggingOptions { /** Agent ID to record in audit entries. */ agentId: string; /** Agent DID (e.g. `'did:key:z6Mk...'`). */ agentDid: string; /** Grant ID associated with the function invocation. */ grantId: string; /** Principal ID that granted authorization. */ principalId: string; } /** * Wrap a {@link GrantexFunction} with Grantex audit logging. * * Logs a `'success'` entry on completion and a `'failure'` entry when * `execute()` throws. The original error is re-thrown after logging. * * @example * ```ts * const auditedFn = withAuditLogging(calendarFn, grantexClient, { * agentId: 'did:key:z6Mk...', * grantId: tokenResponse.grantId, * }); * ``` */ export declare function withAuditLogging>(fn: GrantexFunction, client: Grantex, options: AuditLoggingOptions): GrantexFunction; //# sourceMappingURL=audit.d.ts.map