signalforge
Version:
Fine-grained reactive state management with automatic dependency tracking - Ultra-optimized, zero dependencies
57 lines • 3.31 kB
TypeScript
export declare const DEFAULT_BATCH_DEPTH = 0;
export declare const MAX_BATCH_DEPTH = 1000;
export declare const TIME_TRAVEL_MAX_HISTORY = 100;
export declare const TIME_TRAVEL_FULL_SNAPSHOT_INTERVAL = 10;
export declare const LOGGER_MAX_LOGS = 1000;
export declare const LOGGER_MIN_LOGS = 100;
export declare const LOGGER_MAX_LOGS_LIMIT = 10000;
export declare const DEFAULT_STRING_TRUNCATE_LENGTH = 100;
export declare const SHORT_STRING_TRUNCATE_LENGTH = 50;
export declare const VERY_SHORT_STRING_TRUNCATE_LENGTH = 30;
export declare const PROFILER_SAMPLE_RATE = 1;
export declare const PROFILER_MAX_SAMPLES = 1000;
export declare const PROFILER_SLOW_OPERATION_THRESHOLD = 16;
export declare const PROFILER_STATS_INTERVAL = 5000;
export declare const STORAGE_DEBOUNCE_TIME = 300;
export declare const STORAGE_MAX_RETRIES = 3;
export declare const STORAGE_RETRY_DELAY = 1000;
export declare const DEVTOOLS_DEFAULT_PORT = 8098;
export declare const DEVTOOLS_MAX_QUEUE_SIZE = 1000;
export declare const DEVTOOLS_RECONNECT_DELAY = 2000;
export declare const BENCHMARK_DEFAULT_ITERATIONS = 10000;
export declare const BENCHMARK_WARMUP_ITERATIONS = 100;
export declare const BENCHMARK_RUNS = 5;
export declare const BENCHMARK_LOG_INTERVAL = 100;
export declare const DEFAULT_SIGNAL_LABEL = "signal";
export declare const MAX_DEPENDENCY_DEPTH = 100;
export declare const MAX_SUBSCRIBERS_WARNING = 1000;
export declare const ERROR_PREFIX = "[SignalForge]";
export declare const ERRORS: {
readonly BATCH_MISMATCH: "endBatch called without matching startBatch";
readonly MAX_BATCH_DEPTH: "Maximum batch depth (1000) exceeded";
readonly MAX_DEPENDENCY_DEPTH: "Maximum dependency depth (100) exceeded - possible circular dependency";
readonly INVALID_SIGNAL: "Invalid signal provided";
readonly PLUGIN_NOT_FOUND: "Plugin not found";
readonly PLUGIN_ALREADY_REGISTERED: "Plugin with this name is already registered";
readonly STORAGE_NOT_AVAILABLE: "Storage backend not available";
readonly DEVTOOLS_CONNECTION_FAILED: "Failed to connect to DevTools";
};
export declare const WARNING_PREFIX = "[SignalForge Warning]";
export declare const WARNINGS: {
readonly TOO_MANY_SUBSCRIBERS: "Signal has more than 1000 subscribers - this may impact performance";
readonly SLOW_OPERATION: "Operation took longer than 16ms";
readonly STORAGE_QUOTA_EXCEEDED: "Storage quota exceeded - some data may not be persisted";
readonly ASYNC_STORAGE_NOT_AVAILABLE: "AsyncStorage not available - using memory storage";
};
export declare const VERSION = "2.0.0";
export declare const PLUGIN_API_VERSION = "3.0.0";
export declare const MIN_REACT_VERSION = "16.8.0";
export declare const MIN_REACT_NATIVE_VERSION = "0.60.0";
export declare function isValidRange(value: number, min: number, max: number): boolean;
export declare function clamp(value: number, min: number, max: number): number;
export declare function validateMaxHistory(value: number | undefined): number;
export declare function validateMaxLogs(value: number | undefined): number;
export declare function truncateString(str: string, maxLength?: number): string;
export declare function formatError(message: string): string;
export declare function formatWarning(message: string): string;
//# sourceMappingURL=constants.d.ts.map