tarot-mcp-server
Version:
Model Context Protocol server for Rider-Waite tarot card readings
64 lines (63 loc) • 1.52 kB
TypeScript
/**
* Physical Random Number Provider
* Provides true randomness from natural physical phenomena
*/
export interface RandomSource {
name: string;
description: string;
isAvailable: boolean;
lastUsed?: Date;
errorCount: number;
}
export declare class PhysicalRandomProvider {
private cache;
private cacheSize;
private isRefilling;
private sources;
constructor();
/**
* Get a random number between 0 and 1 from physical sources
*/
getPhysicalRandom(): Promise<number>;
/**
* Get current status of random sources
*/
getSourceStatus(): RandomSource[];
/**
* Get the currently active source name
*/
getCurrentSource(): string;
/**
* Refill the random number cache asynchronously
*/
private refillCache;
/**
* Get random number directly (blocking)
*/
private getDirectRandom;
/**
* Fetch random numbers from physical sources
*/
private fetchPhysicalRandomNumbers;
/**
* Get quantum random numbers from ANU
*/
private getQuantumRandom;
/**
* Get atmospheric random numbers from RANDOM.ORG
*/
private getAtmosphericRandom;
/**
* Cryptographic random fallback
*/
private getCryptographicRandom;
/**
* Mark source as successful
*/
private markSourceSuccess;
/**
* Mark source as having an error
*/
private markSourceError;
}
export declare const physicalRandom: PhysicalRandomProvider;