/**
 * Deprecation warning utility
 * Shows console warnings for deprecated components (once per component, dev mode only)
 */
const warned_components = new Set();
/**
 * Show a deprecation warning in development mode (once per component)
 *
 * @param component_name - Name of the deprecated component
 * @param replacement - Name of the recommended replacement
 * @param migration_hint - Optional hint for migration
 */
export function deprecation_warning(component_name, replacement, migration_hint) {
    // Skip in production
    if (process.env.NODE_ENV === 'production')
        return;
    // Only warn once per component
    if (warned_components.has(component_name))
        return;
    warned_components.add(component_name);
    console.warn(`[hazo_collab_forms] DEPRECATION: "${component_name}" is deprecated. ` +
        `Use "${replacement}" instead.${migration_hint ? ` Migration: ${migration_hint}` : ''}`);
}
//# sourceMappingURL=deprecation_warning.js.map