UNPKG

dive-deco

Version:

A TypeScript implementation of decompression calculation algorithms for scuba diving, featuring Bühlmann ZH-L16C algorithm with gradient factors, gas management, and oxygen toxicity tracking.

39 lines (38 loc) 1.7 kB
import { GradientFactors, MbarPressure, AscentRatePerMinute, CeilingType, NDLType, ConfigValidationError } from './types'; import { DecoModelConfig } from './decoModel'; export declare class BuhlmannConfig implements DecoModelConfig { private readonly gfLow; private readonly gfHigh; private readonly surfacePressureValue; private readonly decoAscentRateValue; private readonly ceilingTypeValue; private readonly roundCeilingValue; private readonly ndlTypeValue; constructor(gradientFactors?: GradientFactors, surfacePressure?: MbarPressure, decoAscentRate?: AscentRatePerMinute, ceilingType?: CeilingType, roundCeiling?: boolean, ndlType?: NDLType); static default(): BuhlmannConfig; static builder(): BuhlmannConfigBuilder; validate(): ConfigValidationError | null; surfacePressure(): MbarPressure; decoAscentRate(): AscentRatePerMinute; ceilingType(): CeilingType; roundCeiling(): boolean; gradientFactors(): GradientFactors; ndlType(): NDLType; clone(): BuhlmannConfig; } export declare class BuhlmannConfigBuilder { private gfLow; private gfHigh; private surfacePressureValue; private decoAscentRateValue; private ceilingTypeValue; private roundCeilingValue; private ndlTypeValue; gradientFactors(gfLow: number, gfHigh: number): BuhlmannConfigBuilder; surfacePressure(pressure: MbarPressure): BuhlmannConfigBuilder; decoAscentRate(rate: AscentRatePerMinute): BuhlmannConfigBuilder; ceilingType(type: CeilingType): BuhlmannConfigBuilder; roundCeiling(round: boolean): BuhlmannConfigBuilder; ndlType(type: NDLType): BuhlmannConfigBuilder; build(): BuhlmannConfig; }