mcpay
Version:
SDK and CLI for MCPay functionality - MCP servers with payment capabilities
32 lines • 1.59 kB
TypeScript
export type HostingPlatform = 'Vercel' | 'Netlify' | 'Cloudflare Pages' | 'Cloudflare Workers' | 'Railway' | 'Render' | 'Heroku' | 'Fly.io' | 'AWS Lambda' | 'AWS Elastic Beanstalk' | 'AWS Amplify' | 'Azure Functions' | 'GCP Cloud Functions' | 'GCP Cloud Run' | 'Deno Deploy' | 'Supabase Edge Functions' | 'Bun.sh' | 'GitHub Pages' | 'GitLab Pages' | 'DigitalOcean App' | 'Kubernetes' | 'Docker' | 'Edge Runtime' | 'Bare‑metal' | 'Unknown';
export type RuntimeEnvironment = 'Node.js' | 'Bun' | 'Deno' | 'Edge' | 'Unknown';
export interface RuntimeInfo {
name: RuntimeEnvironment;
version?: string;
isEdge: boolean;
}
export interface PlatformInfo {
platform: HostingPlatform;
runtime: RuntimeInfo;
signatureEnv: Record<string, string>;
urls: string[];
isEdgeRuntime: boolean;
isContainer: boolean;
isCloudVM: boolean;
}
export declare function detectPlatform(env?: NodeJS.ProcessEnv): Promise<HostingPlatform>;
export declare function generatePotentialUrls(env?: NodeJS.ProcessEnv): string[];
export declare function gatherPlatformInfo(env?: NodeJS.ProcessEnv): Promise<PlatformInfo>;
/**
* Check if the current environment is a specific platform
*/
export declare function isPlatform(targetPlatform: HostingPlatform, env?: NodeJS.ProcessEnv): Promise<boolean>;
/**
* Get a summary of the current runtime environment
*/
export declare function getRuntimeSummary(): string;
/**
* Clear the platform detection cache (useful for testing)
*/
export declare function clearDetectionCache(): void;
//# sourceMappingURL=platform-detection.d.ts.map