cdp-wallet-onramp-kit
Version:
Complete toolkit for Coinbase Developer Platform (CDP) Embedded Wallets and Onramp integration with reusable components, utilities, and documentation
33 lines (32 loc) • 857 B
TypeScript
/**
* Environment detection and runtime warnings for CDP compatibility issues
*/
export interface EnvironmentDiagnostics {
cdpCompatibility: {
isClientSide: boolean;
hasProjectId: boolean;
hasApiCredentials: boolean;
nodeEnv: string;
warnings: string[];
};
hookCompatibility: {
detectedIssues: string[];
recommendations: string[];
};
}
/**
* Detect runtime environment and CDP compatibility
*/
export declare function detectEnvironment(): EnvironmentDiagnostics;
/**
* Log environment diagnostics in development
*/
export declare function logEnvironmentDiagnostics(): void;
/**
* Check for known compatibility issues at runtime
*/
export declare function checkHookCompatibility(hookResults: {
evmAddress?: any;
currentUser?: any;
isInitialized?: any;
}): string[];