import { type Token } from "@yomiscript/core"; export declare const SR = 24000, BLEND = 0.2; export declare const VOICE: Readonly>; export declare function voiceFor(top: string, l: string, x: string): string; /** one unit of a planned section: Kokoro phonemes, pitch values (or null), accent phrase */ export type PlanUnit = [string, number[] | null, number]; export interface PlannedSection { lang: string; text: string; voice: string; /** the phoneme string Kokoro is given */ ps: string; ids: number[]; /** the unit index of each id (-1 for BOS / EOS) */ uid: number[]; U: PlanUnit[]; toks: Token[]; /** how much longer each unit is spoken than Kokoro predicts (1: as predicted; D30) */ lengthen: number[]; /** the fewest steps each id is spoken for (0: no minimum; D34) */ minSteps: number[]; } export type Plan = PlannedSection[] & { src: string; }; export interface PlanOptions { /** Japanese punctuation as the original Kokoro gets it (D22), for the parity checks */ original?: boolean; } /** the steps each id is spoken for, from the ones Kokoro predicts: lengthened (D30), then at least the minimum (D34) */ export declare function spokenSteps(predicted: ArrayLike, sec: Pick): number[]; export declare function plan(ys: string, opts?: PlanOptions): Plan;