/** * @name signer/signer-resolver * @description Resolves the appropriate signer implementation based on SAP MCP configuration mode. * * @flow * 1. `resolveSigner` reads the config mode and determines the signer mode via `getSignerModeFromConfig`. * 2. For `local-keypair` mode, creates a local keypair signer from `walletPath`. * 3. For `external` mode, creates an external signer from `externalSignerUrl`. * 4. For `none` mode (readonly), returns a result with no signer. * 5. For `delegated` mode, throws — delegated signers are session-bound and resolved at runtime. * * @module signer/signer-resolver */ import type { SapMcpConfig } from '../../core/src/types.js'; import type { SignerResult } from './signer-types.js'; /** * @name resolveSigner * @description Resolves and creates a signer instance based on the SAP MCP configuration. * * @param config — SAP MCP configuration with mode, wallet path, and external signer URL. * @returns A `SignerResult` containing the signer, mode, and optional public key. * @throws `SignerError` if required config is missing for the resolved mode, or if the mode is `delegated`. * * @usedBy `create-server.ts:createSapMcpServer`. */ export declare function resolveSigner(config: SapMcpConfig): Promise; //# sourceMappingURL=signer-resolver.d.ts.map