@kya-os/mcp-i
Version:
The TypeScript MCP framework with identity features built-in
29 lines (28 loc) • 1.01 kB
TypeScript
import { StorageMode, StorageConfig } from "@kya-os/contracts/registry";
/**
* Storage configuration utilities for XMCP-I
*/
/**
* Detects and validates the storage mode from environment variables
*/
export declare function detectStorageMode(): StorageMode;
/**
* Creates a complete storage configuration with defaults
*/
export declare function createStorageConfig(overrides?: Partial<StorageConfig>): StorageConfig;
/**
* Validates storage mode configuration
*/
export declare function validateStorageMode(mode: string): mode is StorageMode;
/**
* Gets storage mode description for logging/debugging
*/
export declare function getStorageModeDescription(mode: StorageMode): string;
/**
* Determines if encryption is required for the given storage mode
*/
export declare function isEncryptionRequired(mode: StorageMode): boolean;
/**
* Determines if receipt verification is available for the given storage mode
*/
export declare function isReceiptVerificationAvailable(_mode: StorageMode): boolean;