/** * How strongly the meteors are drawn when a page says nothing: 1, the look they have always had. The page's `meteors-strength` attribute chooses. * * @example * ```ts * import { METEOR_STRENGTH_DEFAULT } from "@johnmorrisdotca/chikyu-earth/meteors"; * * console.log(METEOR_STRENGTH_DEFAULT); // 1 * ``` */ export declare const METEOR_STRENGTH_DEFAULT = 1; /** * What a page's `meteors-strength` attribute means: a number from 0 (no streaks are drawn) to 1 (the full look), given as it is written; with none, or something that * is not a number, `METEOR_STRENGTH_DEFAULT`. A number outside the range is brought to its nearest end. * * @param given - The attribute's value, or `null` when the page has none. * @returns How strongly the streaks are drawn, between 0 and 1. * * @example * ```ts * import { readMeteorStrength } from "@johnmorrisdotca/chikyu-earth/meteors"; * * console.log(readMeteorStrength(null), readMeteorStrength("0.3"), readMeteorStrength("7"), readMeteorStrength("-1"), readMeteorStrength("soft")); // 1 0.3 1 0 1 * ``` */ export declare function readMeteorStrength(given: string | null): number;