import type { ReadonlyDeep } from "type-fest"; import type { CacheSpec } from "../types/00_CacheSpec.js"; import { type NormalizedConsumerMaxStale, type NormalizedParams, type NormalizedProducerMaxStale, type NormalizedProducerResult, type NormalizedProducerResultResource, type NormalizedVary, type NormalizeParamName, type NormalizeParamValue } from "../types/06_Normalization.js"; import { type AnyParams, type AnyValidators, type ConsumerMaxStale, type NormalizedProducerDirectives, type ProducerDirectives, type ProducerMaxStale, type ProducerResult, type ProducerResultResource, type Vary } from "../types/index.js"; export declare function normalizeProducerResult(normalizeVary: (vary: Vary) => NormalizedVary, it: ProducerResult, fallbackProducedAt?: Date): NormalizedProducerResult; export declare function normalizeProducerResultResource(normalizeVary: (vary: Vary) => NormalizedVary, resourceResult: ProducerResultResource, fallbackProducedAt?: Date): NormalizedProducerResultResource; export declare function normalizeProducerDirectives(directives: ProducerDirectives): NormalizedProducerDirectives; export declare function normalizeParams(normalizeParamName: NormalizeParamName, normalizeParamValue: NormalizeParamValue, params: ReadonlyDeep>): NormalizedParams; /** * This is identical to `normalizeParams`, except that param values in `vary` * can be explicitly null, to indicate that the producer relied on the param * being missing. */ export declare function normalizeVary(normalizeParamName: NormalizeParamName, normalizeParamValue: NormalizeParamValue, vary: Vary): NormalizedVary; /** * Normalizes a producer's maxStale directive object into its canonical form. * Ensures that the staleness thresholds are monotonically increasing: * `withoutRevalidation <= whileRevalidate <= ifError`. * * @param maxStale The producer's maxStale directive object * @returns Normalized maxStale with monotonically increasing thresholds */ export declare function normalizeProducerMaxStale(maxStale: ReadonlyDeep): NormalizedProducerMaxStale; /** * Normalizes a consumer's maxStale directive object into its canonical form. * Ensures that the staleness thresholds are monotonically increasing: * `withoutRevalidation <= whileRevalidate <= ifError`. * * @param maxStale The consumer's maxStale directive object * @returns Normalized maxStale with monotonically increasing thresholds */ export declare function normalizeConsumerMaxStale(maxStale: ReadonlyDeep): NormalizedConsumerMaxStale; //# sourceMappingURL=normalization.d.ts.map