import { type ChapterBranch } from "../../../manifest"; import type { Nullable } from "@vkontakte/videoplayer-shared"; /** * Returns a random number in the range [0, limit) or [limit, 0) if the 'limit' * value is negative */ export declare const getRandomNumber: (limit: number) => number; /** * Finds the value with minimal weight number */ export declare const minFallbackStrategy: (branches: ChapterBranch[]) => Nullable; /** * Finds the value with maximal weight number */ export declare const maxFallbackStrategy: (branches: ChapterBranch[]) => Nullable; /** * Finds first branch with `isDefault === true` value */ export declare const defaultFallbackStrategy: (branches: ChapterBranch[]) => ChapterBranch | undefined; /** * Returns the random branch */ export declare const weightlessRandomFallbackStrategy: (branches: ChapterBranch[]) => ChapterBranch; export declare const weightyRandomFallbackStrategy: (branches: ChapterBranch[]) => ChapterBranch;