@thorium-dev-group/x402-mcp-extension
Version:
X402-MCP Protocol Extension
12 lines (11 loc) • 565 B
TypeScript
export interface PaymentOptions {
amount: number;
description?: string;
[key: string]: any;
}
export declare function isPaymentRequired<T extends {
payment?: PaymentOptions;
}>(getOptions: (target: Object, propertyKey: string | symbol) => T | undefined, target: Object, propertyKey: string | symbol): boolean;
export declare function getPaymentOptions<T extends {
payment?: PaymentOptions;
}>(getOptions: (target: Object, propertyKey: string | symbol) => T | undefined, target: Object, propertyKey: string | symbol): PaymentOptions | undefined;