@astermind/astermind-synth
Version:
OmegaSynth - Label-Conditioned Synthetic Data Generator for AsterMind ELM/KELM Pipelines
20 lines (19 loc) • 685 B
TypeScript
/**
* FixedLength - Utilities for fixed-length padding and truncation
*/
export declare class FixedLength {
/**
* Pad or truncate an array to a fixed length
* @param arr Array to pad/truncate
* @param length Target length
* @param padValue Value to use for padding (default: 0)
*/
static padOrTruncate<T>(arr: T[], length: number, padValue?: T): T[];
/**
* Pad or truncate a string to a fixed length
* @param str String to pad/truncate
* @param length Target length
* @param padChar Character to use for padding (default: space)
*/
static padOrTruncateString(str: string, length: number, padChar?: string): string;
}