codigo0/node_modules/@exodus/bytes/encoding.d.ts
planetazuzu 5d7a6500fe refactor: Fase 1 - Clean Architecture, refactorización modular y eliminación de duplicidades
-  Ticket 1.1: Estructura Clean Architecture en backend
-  Ticket 1.2: Schemas Zod compartidos
-  Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares)
-  Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares)
-  Ticket 1.5: Eliminación de duplicidades (~50 líneas)

Cambios principales:
- Creada estructura Clean Architecture en backend/src/
- Schemas Zod compartidos en backend/src/shared/schemas/
- Refactorización modular de drugs y procedures
- Utilidades genéricas en src/utils/ (filter, validation)
- Eliminados scripts obsoletos y documentación antigua
- Corregidos errores: QueryClient, import test-error-handling
- Build verificado y funcionando correctamente
2026-01-25 21:09:47 +01:00

59 lines
1.8 KiB
TypeScript

/// <reference types="node" />
/**
* Converts an encoding label to its name, as an ASCII-lowercased string
* @param label - The encoding label to normalize
* @returns The normalized encoding name, or null if invalid
*/
export function normalizeEncoding(label: string): string | null;
/**
* Implements BOM sniff (https://encoding.spec.whatwg.org/#bom-sniff) legacy hook.
* @param input - The bytes to check for BOM
* @returns The encoding ('utf-8', 'utf-16le', 'utf-16be'), or null if no BOM found
*/
export function getBOMEncoding(
input: ArrayBufferLike | ArrayBufferView
): 'utf-8' | 'utf-16le' | 'utf-16be' | null;
/**
* Implements decode (https://encoding.spec.whatwg.org/#decode) legacy hook.
* @param input - The bytes to decode
* @param fallbackEncoding - The encoding to use if no BOM detected (default: 'utf-8')
* @returns The decoded string
*/
export function legacyHookDecode(
input: ArrayBufferLike | ArrayBufferView,
fallbackEncoding?: string
): string;
/**
* Converts an encoding label to its name, as a case-sensitive string.
* @param label - The encoding label
* @returns The proper case encoding name, or null if invalid
*/
export function labelToName(label: string): string | null;
/**
* Text decoder for decoding bytes to strings in various encodings
* Supports strict and lossy modes
*/
export const TextDecoder: typeof globalThis.TextDecoder;
/**
* Text encoder for encoding strings to UTF-8 bytes
*/
export const TextEncoder: typeof globalThis.TextEncoder;
/**
* Transform stream wrapper for TextDecoder
* Decodes chunks of bytes to strings
*/
export const TextDecoderStream: typeof globalThis.TextDecoderStream;
/**
* Transform stream wrapper for TextEncoder
* Encodes chunks of strings to UTF-8 bytes
*/
export const TextEncoderStream: typeof globalThis.TextEncoderStream;