import { JSONRPCError } from '@modelcontextprotocol/sdk/types.js';
import { AuditRecord } from '../types.js';
/** Maps internal errors to JSON-RPC error payloads */
export declare function mapErrorToPayload(error: Error | unknown, defaultCode: number, defaultMessage: string): JSONRPCError['error'];
/** Maps internal errors to the AuditRecord['outcome']['error'] structure */
export declare function mapErrorToAuditPayload(error: Error | unknown): NonNullable<AuditRecord['outcome']['error']>;
