/** * Appends an ID to a space-separated string of IDs, avoiding duplicates. * @param ids - The current space-separated string of IDs (or undefined/null) * @param idToAdd - The ID to append * @returns The updated space-separated string of IDs * @example * signal.value = appendId(signal.value, "rs7y2l0-error") * // "rs7y2l0-description" -> "rs7y2l0-description rs7y2l0-error" */ export declare function appendId(ids: string | undefined | null, idToAdd: string): string; /** * Removes an ID from a space-separated string of IDs. * @param ids - The current space-separated string of IDs (or undefined/null) * @param idToRemove - The ID to remove * @returns The updated space-separated string of IDs, or undefined if the result is empty * @example * signal.value = removeId(signal.value, "rs7y2l0-error") * // "rs7y2l0-description rs7y2l0-error" -> "rs7y2l0-description" */ export declare function removeId(ids: string | undefined | null, idToRemove: string): string | undefined; /** * Toggles an ID in a space-separated string of IDs. * @param ids - The current space-separated string of IDs (or undefined/null) * @param idToToggle - The ID to toggle * @returns The updated space-separated string of IDs * @example * signal.value = toggleId(signal.value, "rs7y2l0-error") * // "rs7y2l0-description" -> "rs7y2l0-description rs7y2l0-error" * // "rs7y2l0-description rs7y2l0-error" -> "rs7y2l0-description" */ export declare function toggleId(ids: string | undefined | null, idToToggle: string): string | undefined;