waybetter-for-x/apps/desktop/scripts/strings-inventory.d.mts
2026-10-01 06:01:13 +07:00

19 lines
813 B
TypeScript

// Types of strings-inventory.mjs for the tests.
import type { DriftReport, InventoryEntry, StringInventory } from '../../../waybetter/packages/runtime/src/stringPacks.ts';
export const INVENTORY_FILE: string;
export const PAGE_FILE: string;
export const SITE: string;
export const CATALOG: string;
export function extractCatalog(source: string, options?: { group?: string }): {
language: string;
entries: Record<string, InventoryEntry>;
counts: Record<'text' | 'message' | 'rich' | 'format', number>;
};
export function buildInventory(input: { main: string; emoji: string | null; build: string; previous: StringInventory | null }): {
inventory: StringInventory;
drift: DriftReport | null;
loaded: string[];
shared: string[];
};
export function renderInventory(inventory: StringInventory): string;