import * as AWSXRay from "aws-xray-sdk"; export declare function isDevelopment(): boolean; export declare function isStaging(): boolean; export declare function isProduction(): boolean; export declare function isLocal(): boolean; export declare function getEnvValue(key: string): string; export declare function startXRayTracing(segmentName: string): AWSXRay.Subsegment | undefined; export declare function endXRayTracing(subsegment: any): void; export declare const startTimer: () => [number, number]; export declare const endTimer: (start: any, note: any) => void; /** * Safely parses a JSON string, returning a default value if parsing fails * @param jsonString The JSON string to parse * @param defaultValue The default value to return if parsing fails (default: {}) * @returns The parsed JSON object or the default value */ export declare function safeJsonParse(jsonString: string | null | undefined, defaultValue?: any): any; /** * Masks sensitive data in a string or object to prevent leaking sensitive information in logs * @param data The data to mask (string or object) * @returns The masked data as a string */ export declare function maskSensitiveData(data: any): string; /** * Removes sensitive fields from error data * @param data The error data to sanitize * @returns Sanitized error data or undefined if no data */ export declare function sanitizeErrorData(data: any): any | undefined; /** * Securely handles errors by logging the full error and returning a sanitized error response * @param err The error to handle * @param includeErrorData Whether to include error data in the response (default: true) * @returns A sanitized error response */ export declare function secureErrorHandler(err: any, includeErrorData?: boolean): any;