semantic-ds-toolkit
Version:
Performance-first semantic layer for modern data stacks - Stable Column Anchors & intelligent inference
33 lines • 1.11 kB
TypeScript
export interface UuidNormalizationOptions {
removeHyphens?: boolean;
lowercase?: boolean;
validateFormat?: boolean;
}
export interface NormalizedUuid {
normalized: string;
original: string;
confidence: number;
isValid: boolean;
version?: number;
variant?: string;
format: 'standard' | 'compact' | 'urn' | 'invalid';
}
export declare class UuidNormalizer {
private options;
constructor(options?: UuidNormalizationOptions);
normalize(uuid: string): NormalizedUuid;
private attemptCleanup;
private addHyphens;
private getVersion;
private getVariant;
private calculateConfidence;
isValidUuid(uuid: string): boolean;
toStandard(uuid: string): string | null;
toCompact(uuid: string): string | null;
toUrn(uuid: string): string | null;
generateVariations(uuid: string): string[];
}
export declare function normalizeUuid(uuid: string, options?: UuidNormalizationOptions): NormalizedUuid;
export declare function isValidUuid(uuid: string): boolean;
export declare function generateUuid(): string;
//# sourceMappingURL=uuid.d.ts.map